diff options
author | Simon Marlow <marlowsd@gmail.com> | 2010-01-27 13:31:06 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2010-01-27 13:31:06 +0000 |
commit | cb7e8821e9c08537bce370b56442c02ba28decd3 (patch) | |
tree | e35b090968270c51731a6a094732362172d41385 | |
parent | e4173b1b96807a80d3432d1e35f1409f8a3c96f7 (diff) | |
download | haskell-cb7e8821e9c08537bce370b56442c02ba28decd3.tar.gz |
Win32 yieldThread(): use SwitchToThread() instead of Sleep(0)
-rw-r--r-- | rts/win32/OSThreads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/win32/OSThreads.c b/rts/win32/OSThreads.c index 410346916b..c9cb5d6856 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; } |