From 5d98a311e41316635327479278e3d41be54771d1 Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Mon, 16 Aug 2010 18:44:26 -0700 Subject: Putting out the burning tree on Windows. Turns out you can completely starve threads by not yielding on windows/vmware, really weird. --- src/rt/sync/sync.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rt/sync/sync.cpp') diff --git a/src/rt/sync/sync.cpp b/src/rt/sync/sync.cpp index eba51a49..09a6f291 100644 --- a/src/rt/sync/sync.cpp +++ b/src/rt/sync/sync.cpp @@ -5,7 +5,7 @@ void sync::yield() { #ifdef __APPLE__ pthread_yield_np(); #elif __WIN32__ - + Sleep(1); #else pthread_yield(); #endif -- cgit v1.2.3