Returns true on success, false on timeout
| 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 |
no outgoing calls
no test coverage detected