You.i Engine
YiWaitCondition.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_WAIT_CONDITION_H_
3 #define _YI_WAIT_CONDITION_H_
4 
5 #include "framework/YiPredef.h"
6 
7 class CYIMutex;
8 class CYIWaitConditionPriv;
9 
65 {
66 public:
68  virtual ~CYIWaitCondition();
69 
77  bool Wait(CYIMutex &rMutex);
78 
86  bool Wait(CYIMutex &rMutex, uint64_t timeoutMs);
87 
93  bool WakeAll();
94 
100  bool WakeOne();
101 
102 private:
103  CYIWaitConditionPriv *m_pPriv;
104 
106 };
107 
112 #endif /* _YI_WAIT_CONDITION_H_ */
#define YI_DISALLOW_COPY_AND_ASSIGN(TypeName)
Delete the copy constructor and assignment operator (and consequently the move constructor as well) ...
Definition: YiPredef.h:114
Definition: YiMutex.h:110
virtual ~CYIWaitCondition()
bool Wait(CYIMutex &rMutex)
A class used to block a thread until a condition is met, as signaled by a different thread...
Definition: YiWaitCondition.h:64