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
Signal and wait synchronisation promitive.
Definition: Condition.h:43
Protects derived classes from being copied.
Definition: NonCopyable.h:54
bool wait(MutexLock &m, unsigned int ms)
Wait until condition becomes signalled.
Definition: Condition.h:72
Mutual exclusion device.
Definition: Mutex.h:48
Mutex & mutex()
Returns the guarded the mutex object.
Definition: Mutex.h:173
MutexLock class for Mutex.
Definition: Mutex.h:126
void wait(MutexLock &m)
Wait until condition becomes signaled.
Definition: Condition.h:60