projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e4173b1
)
Win32 yieldThread(): use SwitchToThread() instead of Sleep(0)
author
Simon Marlow
<marlowsd@gmail.com>
Wed, 27 Jan 2010 13:31:06 +0000
(13:31 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Wed, 27 Jan 2010 13:31:06 +0000
(13:31 +0000)
rts/win32/OSThreads.c
patch
|
blob
|
history
diff --git
a/rts/win32/OSThreads.c
b/rts/win32/OSThreads.c
index
4103469
..
c9cb5d6
100644
(file)
--- 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;
}