version 1.14.4.1, 2008/06/11 08:40:16
|
version 1.15, 2008/05/21 10:44:48
|
|
|
| |
// ATTN: can we consolidate these someplace? | // ATTN: can we consolidate these someplace? |
| |
|
#ifdef PEGASUS_OS_ZOS |
|
# include <sched.h> |
|
#endif |
#if defined(PEGASUS_HAVE_PTHREADS) | #if defined(PEGASUS_HAVE_PTHREADS) |
# include <pthread.h> | # include <pthread.h> |
# include <errno.h> | # include <errno.h> |
|
|
| |
inline void Threads::yield() | inline void Threads::yield() |
{ | { |
#ifdef PEGASUS_OS_LINUX |
#if defined(PEGASUS_PLATFORM_AIX_RS_IBMCXX) || \ |
pthread_yield(); |
defined(PEGASUS_PLATFORM_PASE_ISERIES_IBMCXX) || \ |
#else |
defined(PEGASUS_PLATFORM_HPUX_ACC) || \ |
|
defined(PEGASUS_PLATFORM_TRU64_ALPHA_DECCXX) || \ |
|
defined(PEGASUS_OS_VMS) || \ |
|
defined(PEGASUS_OS_ZOS) || \ |
|
defined(PEGASUS_OS_DARWIN) |
sched_yield(); | sched_yield(); |
|
#else |
|
pthread_yield(); |
#endif | #endif |
} | } |
| |