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

Method HxMutex

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

Source from the content-addressed store, hash-verified

47struct HxMutex
48{
49 HxMutex()
50 {
51 mValid = true;
52 #ifdef HX_WINRT
53 InitializeCriticalSectionEx(&mCritSec,4000,0);
54 #else
55 InitializeCriticalSection(&mCritSec);
56 #endif
57 }
58 ~HxMutex() { if (mValid) DeleteCriticalSection(&mCritSec); }
59 void Lock() { EnterCriticalSection(&mCritSec); }
60 void Unlock() { LeaveCriticalSection(&mCritSec); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected