NetBSD ships with sched_yield(3) This patch is MIT-licensed.
Author: Kamil Rytarowski
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; } -
signature.asc
Description: OpenPGP digital signature
_______________________________________________ vbox-dev mailing list vbox-dev@virtualbox.org https://www.virtualbox.org/mailman/listinfo/vbox-dev