aboutsummaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-05-26 01:22:11 +0200
committerStapleButter <thetotalworm@gmail.com>2017-05-26 01:22:11 +0200
commit8558eff8aa1365bdd89fca002965ded9c80e9de8 (patch)
tree74034627cb53da30e0f99dc5425972e2215f793d /src/wx
parent9d2b36127db23fba39cd83118d33ca68d8801f9a (diff)
properly reset 3D thread state
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/Platform.cpp5
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();