29 #ifndef PT_SYSTEM_CONDITION_H
30 #define PT_SYSTEM_CONDITION_H
32 #include <Pt/System/Api.h>
33 #include <Pt/System/Mutex.h>
34 #include <Pt/NonCopyable.h>
52 void wait(
Mutex& mtx);
61 { this->wait( m.
mutex() ); }
63 bool wait(
Mutex& mtx,
unsigned int ms);
73 {
return this->wait( m.
mutex(), ms ); }
82 class ConditionImpl* _impl;
89 #endif // PT_SYSTEM_CONDITION_H
Core module.
Definition: Allocator.h:33
void signal()
Unblock a single blocked thread.
MutexLock class for Mutex.
Definition: Mutex.h:127
Mutex & mutex()
Returns the guarded the mutex object.
Definition: Mutex.h:173
Mutual exclusion device.
Definition: Mutex.h:49
Condition()
Default Constructor.
Protects derived classes from being copied.
Definition: NonCopyable.h:54
Signal and wait synchronisation promitive.
Definition: Condition.h:44
void broadcast()
Unblock all blocked threads.
bool wait(MutexLock &m, unsigned int ms)
Wait until condition becomes signalled.
Definition: Condition.h:72
void wait(MutexLock &m)
Wait until condition becomes signaled.
Definition: Condition.h:60