aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/event.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenAL32/event.c b/OpenAL32/event.c
index f65efc7c..ef36f977 100644
--- a/OpenAL32/event.c
+++ b/OpenAL32/event.c
@@ -13,6 +13,11 @@ static int EventThread(void *arg)
{
ALCcontext *context = arg;
+ /* Clear all pending posts on the semaphore. */
+ while(alsem_trywait(&context->EventSem) == althrd_success)
+ {
+ }
+
while(1)
{
AsyncEvent evt;