فهرست منبع

fix Thread::force_yield() on win7

David Rose 13 سال پیش
والد
کامیت
ede16a5287
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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::
 yield() {
-  sleep(0.0);
+  Sleep(1);
 }
 
 ////////////////////////////////////////////////////////////////////