Browse Source

fix Thread::force_yield() on win7

David Rose 13 years ago
parent
commit
ede16a5287
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/pipeline/threadWin32Impl.I

+ 1 - 1
panda/src/pipeline/threadWin32Impl.I

@@ -122,7 +122,7 @@ sleep(double seconds) {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE void ThreadWin32Impl::
 INLINE void ThreadWin32Impl::
 yield() {
 yield() {
-  sleep(0.0);
+  Sleep(1);
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////