 |
VTK
9.0.1
|
Go to the documentation of this file.
30 #ifndef vtkConditionVariable_h
31 #define vtkConditionVariable_h
33 #include "vtkCommonCoreModule.h"
38 #if defined(VTK_USE_PTHREADS)
45 #ifdef VTK_USE_WIN32_THREADS
47 #define _WIN32_WINNT 0x0501 // 0x0501 means target Windows XP or later
49 #include "vtkWindows.h"
52 #ifdef VTK_USE_WIN32_THREADS
57 int WaitingThreadCount;
60 CRITICAL_SECTION WaitingThreadCountCritSec;
63 vtkWindowsHANDLE Semaphore;
67 vtkWindowsHANDLE DoneWaiting;
78 int WaitingThreadCount;
81 CRITICAL_SECTION WaitingThreadCountCritSec;
92 vtkWindowsHANDLE Event;
97 #endif // VTK_USE_WIN32_THREADS
99 #ifndef VTK_USE_PTHREADS
100 #ifndef VTK_USE_WIN32_THREADS
202 #endif // vtkConditionVariable_h
void Broadcast()
Wake all threads waiting for the condition to change.
static vtkConditionVariable * New()
vtkSimpleMutexLock SimpleMutexLock
mutual exclusion locking class
void Broadcast()
Wake all threads waiting for the condition to change.
abstract base class for most VTK objects
~vtkSimpleConditionVariable()
vtkSimpleConditionVariable()
int Wait(vtkSimpleMutexLock &mutex)
Wait for the condition to change.
void Signal()
Wake one thread waiting for the condition to change.
vtkSimpleConditionVariable SimpleConditionVariable
vtkConditionType ConditionVariable
static vtkSimpleConditionVariable * New()
void Signal()
Wake one thread waiting for the condition to change.
a simple class to control print indentation
mutual exclusion locking class
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int Wait(vtkMutexLock *mutex)
Wait for the condition to change.