CMGDK r49-rc2
|
组合类型 | |
class | hgl::RWLock |
名字空间 | |
namespace | hgl |
__MAKE_HGL__&&!__MAKE_PLUGIN__ | |
宏定义 | |
#define | HGL_RWLOCK(lock) |
函数 | |
RWLock * | hgl::CreateRWLock () |
创建读写锁 |
#define HGL_RWLOCK | ( | lock | ) |
void ReadLock() {lock->ReadLock(); } \ void WriteLock() {lock->WriteLock(); } \ bool TryReadLock() {return lock->TryReadLock(); } \ bool TryWriteLock() {return lock->TryWriteLock(); } \ void ReadUnlock() {lock->ReadUnlock(); } \ void WriteUnlock() {lock->WriteUnlock(); }