|
#include <threadmm/condition.hh>
List of all members.
Detailed Description
Condition variable implementation.
- See also:
- threadmm::basic_condition
Constructor & Destructor Documentation
threadmm::cthreads::condition::condition |
( |
bool |
shared = false |
) |
|
|
|
Construct a condition variable.
- Parameters:
-
|
threadmm::cthreads::condition::~condition |
( |
|
) |
[virtual] |
|
|
Free a conditon variable.
|
Member Function Documentation
void threadmm::cthreads::condition::broadcast |
( |
|
) |
|
|
|
Wake up all threads waiting for the condition.
|
bool threadmm::cthreads::condition::shared |
( |
|
) |
const [inline] |
|
|
Whether it's shared between processes.
- Returns:
- Always false
|
void threadmm::cthreads::condition::signal |
( |
|
) |
|
|
|
Wake up exactly one thread waiting for the condition.
|
template<typename Mutex> |
bool threadmm::cthreads::condition::wait |
( |
Mutex & |
m, |
|
|
struct timespec * |
t = 0 |
|
) |
[inline] |
|
|
Wait for the condition variable.
- Parameters:
-
| m | The mutex to entry free, and lock on exit. |
| t | Possible time to wait. |
|
The documentation for this class was generated from the following file:
Top of page
Last update Tue Nov 9 12:40:51 2004
Christian Holm
Created by DoxyGen 1.3.9.1
|