[vbox-dev] NetBSD patch 0006: NetBSD ships with sched_yield(3)
Kamil Rytarowski
n54 at gmx.com
Fri Jul 22 23:14:29 UTC 2016
NetBSD ships with sched_yield(3)
This patch is MIT-licensed.
Author: Kamil Rytarowski
-------------- next part --------------
NetBSD ships with sched_yield(3)
This patch is MIT-licensed.
Author: Kamil Rytarowski
Index: src/VBox/Runtime/r3/posix/thread2-posix.cpp
===================================================================
--- src/VBox/Runtime/r3/posix/thread2-posix.cpp (wersja 62416)
+++ src/VBox/Runtime/r3/posix/thread2-posix.cpp (kopia robocza)
@@ -62,7 +62,7 @@
pthread_yield_np();
#elif defined(RT_OS_FREEBSD) /* void pthread_yield */
pthread_yield();
-#elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU)
+#elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_NETBSD)
sched_yield();
#else
if (!pthread_yield())
@@ -101,7 +101,7 @@
pthread_yield_np();
#elif defined(RT_OS_FREEBSD) /* void pthread_yield */
pthread_yield();
-#elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU)
+#elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_NETBSD)
sched_yield();
#else
if (!pthread_yield())
@@ -144,4 +144,3 @@
#endif
return fRc;
}
-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20160723/f4bb2c53/attachment.sig>
More information about the vbox-dev
mailing list