Changeset 62887 in vbox for trunk/src/VBox/Runtime/r3/posix
- Timestamp:
- Aug 2, 2016 9:26:02 PM (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
r62859 r62887 50 50 #endif 51 51 52 #if defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_ NETBSD)52 #if defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_FREEBSD) || 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
r62859 r62887 33 33 #include <pthread.h> 34 34 #include <unistd.h> 35 #if defined(RT_OS_SOLARIS) || defined(RT_OS_ NETBSD)35 #if defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD) 36 36 # include <sched.h> 37 37 #endif … … 61 61 #ifdef RT_OS_DARWIN 62 62 pthread_yield_np(); 63 #elif defined(RT_OS_FREEBSD) /* void pthread_yield */ 64 pthread_yield(); 65 #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_NETBSD) 63 #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD) 66 64 sched_yield(); 67 65 #else … … 100 98 #ifdef RT_OS_DARWIN 101 99 pthread_yield_np(); 102 #elif defined(RT_OS_FREEBSD) /* void pthread_yield */ 103 pthread_yield(); 104 #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_NETBSD) 100 #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD) 105 101 sched_yield(); 106 102 #else … … 131 127 #ifdef RT_OS_DARWIN 132 128 pthread_yield_np(); 133 #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_ NETBSD)129 #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD) 134 130 sched_yield(); 135 131 #else
Note:
See TracChangeset
for help on using the changeset viewer.