X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2Fwin32%2FOSThreads.c;h=c9cb5d685621871fe67f4fd7767a6494e3a65c30;hb=79957d77c1bff767f1041d3fabdeb94d92a52878;hp=c18bab2d09d693521de254a844b88ec47da732f9;hpb=31caec794c3978d55d79f715f21fb72948c9f300;p=ghc-hetmet.git diff --git a/rts/win32/OSThreads.c b/rts/win32/OSThreads.c index c18bab2..c9cb5d6 100644 --- a/rts/win32/OSThreads.c +++ b/rts/win32/OSThreads.c @@ -11,7 +11,6 @@ #include "Rts.h" #if defined(THREADED_RTS) -#include "OSThreads.h" #include "RtsUtils.h" #include @@ -87,7 +86,7 @@ waitCondition ( Condition* pCond, Mutex* pMut ) void yieldThread() { - Sleep(0); + SwitchToThread(); return; } @@ -95,6 +94,7 @@ void shutdownThread() { _endthreadex(0); + barf("_endthreadex returned"); // avoid gcc warning } int