AndroMeta  2.0.0
Public Member Functions
Meta::MCondition Class Reference

Typical condition variable used for thread synchronization. More...

#include <MCondition.h>

List of all members.

Public Member Functions

 MCondition (MMutex *mutex)
 ~MCondition ()
void await ()
bool await (const mtime &timeout)
void signal ()
void broadcast ()
MMutexmutex ()

Detailed Description

Typical condition variable used for thread synchronization.

Condition variable for thread synchronization using standard semantics.


Constructor & Destructor Documentation

Constructor.

Parameters:
mutexThe associated mutex.

Destructor.


Member Function Documentation

Block until signalled. On return, the associated mutex is now unlocked.

bool Meta::MCondition::await ( const mtime timeout)

Block until signalled or timeout has been reached. Upon returning true, the associated mutex is now unlocked.

Returns:
true when woken up from a signal, i.e: did not time out

Signal all waiting threads.

Returns:
A pointer to the associated mutex that the condition variable was constructed with.

Signal a waiting thread.


The documentation for this class was generated from the following file: