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

Method WaitSeconds

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

Returns true on success, false on timeout

Source from the content-addressed store, hash-verified

183 }
184 // Returns true on success, false on timeout
185 bool WaitSeconds(double inSeconds)
186 {
187 #ifdef HX_WINRT
188 return WaitForSingleObjectEx(mSemaphore,inSeconds*1000.0,false) != WAIT_TIMEOUT;
189 #else
190 return WaitForSingleObject(mSemaphore,inSeconds*1000.0) != WAIT_TIMEOUT;
191 #endif
192 }
193 void Reset() { ResetEvent(mSemaphore); }
194 void Clean() { if (mSemaphore) CloseHandle(mSemaphore); mSemaphore = 0; }
195

Callers 2

WaitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected