cross-platform define update

This commit is contained in:
2019-12-10 14:38:29 +08:00
parent 2d8da351ba
commit 1bfb503e13
6 changed files with 25 additions and 14 deletions

View File

@@ -9,14 +9,14 @@ namespace hgl
*/
class RWLock ///读写锁/共享锁
{
void *lock;
rwlock_ptr *lock;
public:
RWLock();
virtual ~RWLock();
void *GetRWLock(){ return lock; } ///<返回操作系级锁
rwlock_ptr *GetRWLock(){ return lock; } ///<返回操作系级锁
bool TryReadLock(); ///<尝试读(共享访问)锁定
bool ReadLock(); ///<读(共享访问)锁定