OSDetachThread

C Specification

#include <revolution/os.h>
void OSDetachThread (OSThread* thread);

Arguments

thread Pointer to thread for which detached attribute is to be set.

Return Values

None.

Description

Sets the detached attribute for thread. Once a thread ends, that thread is automatically removed from the active thread list. Otherwise, the thread remains on the active thread list until the thread is detached or threads joined to it have ended. Undetached threads enable joining threads to receive the return value of the thread that has ended. This is also useful for debugging because the context of the thread can be analyzed in the debugger after it has terminated.

See Also

Thread Synchronization, Thread Synchronization Functions, OSCancelThread,  OSCreateThreadOSJoinThreadOSExitThread

Revision History

03/01/2006 Initial version.