You.i Engine
YiMutex.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_MUTEX_H_
3 #define _YI_MUTEX_H_
4 
5 
6 #include "framework/YiPredef.h"
7 
14 class CYIMutexPriv;
15 
110 class CYIMutex
111 {
112  friend class CYIWaitCondition;
113 public:
114 
116  {
119  };
120 
132  virtual ~CYIMutex();
133 
142  bool Lock();
143 
152  bool TryLock();
153 
160  bool Unlock();
161 
162 protected:
163  CYIMutexPriv *m_pPriv;
164 
165 private:
167 };
168 
171 #endif // _YI_MUTEX_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
bool Unlock()
Definition: YiMutex.h:118
bool Lock()
CYIMutex(YI_MUTEX_MODE mode=YI_FAST_MUTEX)
Definition: YiMutex.h:117
bool TryLock()
A class used to block a thread until a condition is met, as signaled by a different thread...
Definition: YiWaitCondition.h:64
virtual ~CYIMutex()
CYIMutexPriv * m_pPriv
Definition: YiMutex.h:163
YI_MUTEX_MODE
Definition: YiMutex.h:115