Public Member Functions

a5::Condition Class Reference

Object representing a condition. More...

#include <Thread.hpp>

List of all members.

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.

Detailed Description

Object representing a condition.


Constructor & Destructor Documentation

a5::Condition::Condition (  ) 

Creates the condition.

a5::Condition::~Condition (  ) 

Destroys the condition.


Member Function Documentation

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines