#include <revolution/os.h> void OSDetachThread(OSThread* thread);
| thread | Pointer to thread for which detached attribute is to be set. |
|---|
None.
Sets the detached attribute for thread. Once a thread has terminated, that thread is automatically removed from the active thread list. Otherwise, it remains on the active thread list until it is detached or all threads joined to it have terminated. Undetached threads make it possible for joining threads to receive the return value of the terminating thread. This is also useful for debugging, as the context of the thread can be analyzed in the debugger after it has terminated.
Thread Functions, Thread Synchronization Functions, OSCancelThread, OSCreateThread, OSJoinThread, OSExitThread
2006/03/01 Initial version.
CONFIDENTIAL