Object representing a condition. More...
#include <Thread.hpp>
Public Member Functions | |
Condition () | |
Creates the condition. | |
void | Wait (Mutex &mutex) |
Waits for the condition to be true. | |
void | Wait (Mutex &mutex, double timeout) |
Waits for the condition to be true for as long as a specified time. | |
ALLEGRO_COND * | Release () |
Releases the held C structure so it is no longer automatically freed. | |
~Condition () | |
Destroys the condition. | |
operator ALLEGRO_COND * () const | |
Returns a pointer to the Allegro condition structure. |
Object representing a condition.
a5::Condition::Condition | ( | ) |
Creates the condition.
a5::Condition::~Condition | ( | ) |
Destroys the condition.
void a5::Condition::Wait | ( | Mutex & | mutex | ) |
Waits for the condition to be true.
void a5::Condition::Wait | ( | Mutex & | mutex, | |
double | timeout | |||
) |
Waits for the condition to be true for as long as a specified time.
ALLEGRO_COND* a5::Condition::Release | ( | ) |
Releases the held C structure so it is no longer automatically freed.
a5::Condition::operator ALLEGRO_COND * | ( | ) | const |
Returns a pointer to the Allegro condition structure.