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

Method HxSemaphore

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

Source from the content-addressed store, hash-verified

164struct HxSemaphore
165{
166 HxSemaphore()
167 {
168 #ifdef HX_WINRT
169 mSemaphore = CreateEventEx(nullptr,nullptr,0,EVENT_ALL_ACCESS);
170 #else
171 mSemaphore = CreateEvent(0,0,0,0);
172 #endif
173 }
174 ~HxSemaphore() { if (mSemaphore) CloseHandle(mSemaphore); }
175 void Set() { SetEvent(mSemaphore); }
176 void Wait()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected