version 1.107, 2008/09/16 18:37:03
|
version 1.108, 2008/10/17 11:07:33
|
|
|
| |
void Thread::thread_switch() | void Thread::thread_switch() |
{ | { |
#if defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) |
#if defined(PEGASUS_OS_ZOS) |
pthread_yield(NULL); | pthread_yield(NULL); |
#else | #else |
sched_yield(); | sched_yield(); |
|
|
void Thread::detach() | void Thread::detach() |
{ | { |
_is_detached = true; | _is_detached = true; |
#if defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) |
#if defined(PEGASUS_OS_ZOS) |
pthread_t thread_id=_handle.thid.thread; | pthread_t thread_id=_handle.thid.thread; |
pthread_detach(&thread_id); | pthread_detach(&thread_id); |
#else | #else |