Changeset 62859 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Aug 2, 2016 12:31:43 AM (8 years ago)
- Location:
- trunk/src/VBox/Runtime/r3/posix
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/semevent-posix.cpp
r62564 r62859 50 50 #endif 51 51 52 #if defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) 52 #if defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_NETBSD) 53 53 # include <sched.h> 54 54 # define pthread_yield() sched_yield() -
trunk/src/VBox/Runtime/r3/posix/thread2-posix.cpp
r62477 r62859 33 33 #include <pthread.h> 34 34 #include <unistd.h> 35 #if defined(RT_OS_SOLARIS) 35 #if defined(RT_OS_SOLARIS) || defined(RT_OS_NETBSD) 36 36 # include <sched.h> 37 37 #endif … … 63 63 #elif defined(RT_OS_FREEBSD) /* void pthread_yield */ 64 64 pthread_yield(); 65 #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) 65 #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_NETBSD) 66 66 sched_yield(); 67 67 #else … … 102 102 #elif defined(RT_OS_FREEBSD) /* void pthread_yield */ 103 103 pthread_yield(); 104 #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) 104 #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_NETBSD) 105 105 sched_yield(); 106 106 #else … … 131 131 #ifdef RT_OS_DARWIN 132 132 pthread_yield_np(); 133 #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) 133 #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_NETBSD) 134 134 sched_yield(); 135 135 #else
Note:
See TracChangeset
for help on using the changeset viewer.