Section: Visualization Toolkit Common Classes
The win32 implementation is based on notes provided by Douglas C. Schmidt and Irfan Pyarali, Department of Computer Science, Washington University, St. Louis, Missouri. http://www.cs.wustl.edu/~schmidt/win32-cv-1.html
To create an instance of class vtkConditionVariable, simply invoke its constructor as follows
obj = vtkConditionVariable
obj
is an instance of the vtkConditionVariable class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkConditionVariable = obj.NewInstance ()
vtkConditionVariable = obj.SafeDownCast (vtkObject o)
obj.Signal ()
- Wake one thread waiting for the condition to change.
obj.Broadcast ()
- Wake all threads waiting for the condition to change.
int = obj.Wait (vtkMutexLock mutex)
- Wait for the condition to change.
Upon entry, the mutex must be locked and the lock held by the calling thread.
Upon exit, the mutex will be locked and held by the calling thread.
Between entry and exit, the mutex will be unlocked and may be held by other threads.
@param mutex The mutex that should be locked on entry and will be locked on exit (but not in between)
@retval Normally, this function returns 0. Should a thread be interrupted by a signal, a non-zero value may be returned.