diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-05-26 01:22:11 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-05-26 01:22:11 +0200 |
commit | 8558eff8aa1365bdd89fca002965ded9c80e9de8 (patch) | |
tree | 74034627cb53da30e0f99dc5425972e2215f793d /src/wx | |
parent | 9d2b36127db23fba39cd83118d33ca68d8801f9a (diff) |
properly reset 3D thread state
Diffstat (limited to 'src/wx')
-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(); |