| 164 | struct 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() |
nothing calls this directly
no outgoing calls
no test coverage detected