https://bugs.winehq.org/show_bug.cgi?id=47458
--- Comment #2 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- So moving this lines if (This->event) SetEvent(This->event);
after the pthread_mutex_unlock call would fix the issue you are experiencing.