#include <revolution/os.h>
void OSDetachThread (OSThread* thread);
|
Pointer to thread for which detached attribute is to be set. |
None.
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.
Thread Synchronization, Thread Synchronization Functions, OSCancelThread, OSCreateThread, OSJoinThread, OSExitThread
03/01/2006 Initial version.