class Conditional

conditional. More...

Full nameost::Conditional
Definition#include <thread.h>
Inheritsost::Mutex [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

A conditional variable sychcronization object for one to one and one to many signal and control events between processes. Conditional variables may wait for and receive signals to notify when to resume or perform operations. Multiple waiting threads may be woken with a broadcast signal.

 Conditional ()

Conditional

Create an instance of a conditional.

 ~Conditional ()

~Conditional

[virtual]

Destroy the conditional.

void  Signal (bool broadcast)

Signal

Signal a conditional object and a waiting threads.

Parameters:
broadcastthis signal to all waiting threads if true.

void  Wait (timeout_t timer = 0)

Wait

Wait to be signaled from another thread.