Csound and CsoundAC API
5.17
|
Encapsulates a thread monitor, such as a Windows event handle. More...
#include <System.hpp>
Public Member Functions | |
virtual void | close () |
Destroys the monitor. More... | |
virtual void | endWait () |
Releases one thread that is waiting on the monitor. More... | |
virtual bool | isOpen () |
Returns whether the monitor is open. More... | |
virtual void | open () |
Creates and initializes the monitor. More... | |
virtual void | startWait (size_t timeoutMilliseconds=0) |
Waits until the monitor is notified by another thread. More... | |
ThreadLock () | |
virtual | ~ThreadLock () |
Private Attributes | |
void * | lock |
Encapsulates a thread monitor, such as a Windows event handle.
csound::ThreadLock::ThreadLock | ( | ) |
|
virtual |
|
virtual |
Destroys the monitor.
|
virtual |
Releases one thread that is waiting on the monitor.
|
virtual |
Returns whether the monitor is open.
|
virtual |
Creates and initializes the monitor.
The monitor is in a non-notified or unsignaled state.
|
virtual |
Waits until the monitor is notified by another thread.
Zero timeout means infinite timeout.
|
private |