![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Platform independent condition variable. More...
Inheritance diagram for DtCondVar__rti__:
Collaboration diagram for DtCondVar__rti__:Public Member Functions | |
| DtCondVar__rti__ (MAKRti::DtMutex__rti__ *condMutex) | |
| constructor More... | |
| virtual | ~DtCondVar__rti__ () |
| destructor More... | |
| virtual void | init () |
| initialize condition variable More... | |
| virtual void | destroy () |
| destroy the condition variable. More... | |
| virtual void | signal () |
| signal next waiting process that the condition has been met More... | |
| virtual void | broadcast () |
| signal all waiting processes that the condition has been met More... | |
| virtual int | wait (DtTime waitTime=0.0) |
| wait for the condition to be met. More... | |
Protected Member Functions | |
| DtCondVar__rti__ (const DtCondVar__rti__ &orig) | |
| copy constructor More... | |
| const DtCondVar__rti__ & | operator= (const DtCondVar__rti__ &orig) |
| assignment operator More... | |
Protected Attributes | |
| DtClock | myClock |
| pthread_cond_t | myPtCond |
| for expiration timer in pthreads implementations. More... | |
| pthread_cond_t * | myCond |
| MAKRti::DtMutex__rti__ * | myCondMutex |
Platform independent condition variable.
Instances of DtCondVar are used to provide a platform independent condition variable mechanism for use by threads of the same process. Do not use this class to implement inter-process comm- unication between threads of different processes.
| DtCondVar__rti__::DtCondVar__rti__ | ( | MAKRti::DtMutex__rti__ * | condMutex | ) |
constructor
|
protected |
copy constructor
|
virtual |
destructor
|
virtual |
signal all waiting processes that the condition has been met
|
virtual |
destroy the condition variable.
This should only be called when no threads or processes will access the condition variable any longer.
|
virtual |
initialize condition variable
Reimplemented in DtIpcCondVar__rti__.
|
protected |
assignment operator
|
virtual |
signal next waiting process that the condition has been met
|
virtual |
wait for the condition to be met.
Returns 0 if condition met, +1 if timeout occured, -1 if error
|
protected |
|
protected |
|
protected |
|
protected |
for expiration timer in pthreads implementations.
WIN32