diff options
Diffstat (limited to 'src/wx/Platform.cpp')
-rw-r--r-- | src/wx/Platform.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wx/Platform.cpp b/src/wx/Platform.cpp index 1fb4373..b925e24 100644 --- a/src/wx/Platform.cpp +++ b/src/wx/Platform.cpp @@ -109,6 +109,11 @@ void Semaphore_Free(void* sema) delete (wxSemaphore*)sema; } +void Semaphore_Reset(void* sema) +{ + while (((wxSemaphore*)sema)->TryWait() == wxSEMA_NO_ERROR); +} + void Semaphore_Wait(void* sema) { ((wxSemaphore*)sema)->Wait(); |