From OpenSCADAWiki
Conditional variable object, by mutex (CondVar)
Public methods:
- CondVar( ); — Initialization of the conditional variable.
- int wait( ResMtx &mtx, unsigned short tm = 0 ); — wait for the conditional variable wake up for the timeout tm with the mutex mtx.
- int wakeOne( ); — wake up one thread.
- int wakeAll( ); — wake up all threads.