csCondition Class Reference
A condition object. More...
#include <csutil/thread.h>
Inheritance diagram for csCondition:

Public Member Functions | |
virtual char const * | GetLastError () const =0 |
Return the last error description, else null if there was none. | |
virtual void | Signal (bool WakeAll=false)=0 |
Wake up one or all threads waiting upon a change of condition. | |
virtual bool | Wait (csMutex *mutex, csTicks timeout=0)=0 |
Wait for some change of condition. | |
Static Public Member Functions | |
static csRef< csCondition > | Create (uint32 conditionAttributes=0) |
Create a condition with specific attributes. |
Detailed Description
A condition object.
Definition at line 232 of file thread.h.
Member Function Documentation
|
Create a condition with specific attributes.
|
|
Return the last error description, else null if there was none.
|
|
Wake up one or all threads waiting upon a change of condition. If WakeAll is false, only one waiting thread will be awakened and given access to the associated mutex. If WakeAll is true, all threads waiting on the condition will be awakened and will vie for the associated mutex. Only one thread will win the mutex (thus gaining access to the condition); all other waiting threads will be re-suspended. |
|
Wait for some change of condition. Suspends the calling thread until some other thread invokes Signal() to notify a change of condition.
|
The documentation for this class was generated from the following file:
- csutil/thread.h
Generated for Crystal Space by doxygen 1.4.4