MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / Lock

Method Lock

include/hx/Thread.h:59–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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; }

Callers 4

PopFrontMethod · 0.45
WaitMethod · 0.45
TAutoLockMethod · 0.45
LockMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected