| 57 | } |
| 58 | ~HxMutex() { if (mValid) DeleteCriticalSection(&mCritSec); } |
| 59 | void Lock() { EnterCriticalSection(&mCritSec); } |
| 60 | void Unlock() { LeaveCriticalSection(&mCritSec); } |
| 61 | bool TryLock() { return TryEnterCriticalSection(&mCritSec); } |
| 62 | bool IsValid() { return mValid; } |