From: Simon Marlow Date: Wed, 27 Jan 2010 13:31:06 +0000 (+0000) Subject: Win32 yieldThread(): use SwitchToThread() instead of Sleep(0) X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=cb7e8821e9c08537bce370b56442c02ba28decd3;p=ghc-hetmet.git Win32 yieldThread(): use SwitchToThread() instead of Sleep(0) --- diff --git a/rts/win32/OSThreads.c b/rts/win32/OSThreads.c index 4103469..c9cb5d6 100644 --- a/rts/win32/OSThreads.c +++ b/rts/win32/OSThreads.c @@ -86,7 +86,7 @@ waitCondition ( Condition* pCond, Mutex* pMut ) void yieldThread() { - Sleep(0); + SwitchToThread(); return; }