Panda3D
Public Member Functions | List of all members
ConditionVar Class Reference
Inheritance diagram for ConditionVar:
ConditionVarDirect

Public Member Functions

 __init__ (Mutex mutex)
 You must pass in a Mutex to the condition variable constructor. More...
 
Mutex getMutex ()
 Returns the mutex associated with this condition variable. More...
 
- Public Member Functions inherited from ConditionVarDirect
MutexDirect getMutex ()
 Returns the mutex associated with this condition variable. More...
 
 notify ()
 Informs one of the other threads who are currently blocked on wait() that the relevant condition has changed. More...
 
 output (Ostream out)
 This method is declared virtual in ConditionVarDebug, but non-virtual in ConditionVarDirect. More...
 
 wait ()
 Waits on the condition. More...
 
 wait (double timeout)
 Waits on the condition, with a timeout. More...
 

Member Function Documentation

◆ __init__()

__init__ ( Mutex  mutex)

You must pass in a Mutex to the condition variable constructor.

This mutex may be shared by other condition variables, if desired. It is the caller's responsibility to ensure the Mutex object does not destruct during the lifetime of the condition variable.

◆ getMutex()

Mutex getMutex ( )

Returns the mutex associated with this condition variable.