https://bugs.winehq.org/show_bug.cgi?id=46099
--- Comment #29 from Fabian Maurer dark.shadow4@web.de ---
I've attached a set of two patches that should hopefully avoid the race discussed above. Can you please test this with Star Citizen and see if it fixes the bug?
Ah thanks, that makes sense. Guessed on a race condition between queuing and going to sleep, but it's differently implemented, so nevermind. FWIW, your patches fix all the race conditions I was able to reproduce.