Go to the documentation of this file.
23 #ifndef vtkThreadMessager_h
24 #define vtkThreadMessager_h
26 #include "vtkCommonSystemModule.h"
29 #if defined(VTK_USE_PTHREADS)
78 #ifdef VTK_USE_PTHREADS
79 pthread_mutex_t Mutex;
80 pthread_cond_t PSignal;
83 #ifdef VTK_USE_WIN32_THREADS
84 vtkWindowsHANDLE WSignal;
void DisableWaitForReceiver()
pthreads only.
A class for performing inter-thread messaging.
void WaitForMessage()
Wait (block, non-busy) until another thread sends a message.
abstract base class for most VTK objects
~vtkThreadMessager() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void EnableWaitForReceiver()
pthreads only.
a simple class to control print indentation
void WaitForReceiver()
pthreads only.
void SendWakeMessage()
Send a message to all threads who are waiting via WaitForMessage().
static vtkThreadMessager * New()