version 1.96, 2006/08/24 21:28:13
|
version 1.97, 2006/10/31 18:23:45
|
|
|
| |
void Thread::exit_self(ThreadReturnType exit_code) | void Thread::exit_self(ThreadReturnType exit_code) |
{ | { |
#if defined(PEGASUS_PLATFORM_HPUX_ACC) || \ |
#ifndef PEGASUS_PLATFORM_AIX_RS_IBMCXX |
defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) |
Threads::exit(exit_code); |
// NOTE: pthread_exit exhibits unusual behavior on RHEL 3 U2, as |
|
// documented in Bugzilla 3836. Where feasible, it may be advantageous |
|
// to avoid using this function. |
|
pthread_exit(exit_code); |
|
#else | #else |
// execute the cleanup stack and then return | // execute the cleanup stack and then return |
while (_cleanup.size()) | while (_cleanup.size()) |