#include <revolution/os.h>
BOOL OSJoinThread (OSThread* thread, void** val);
|
Pointer to thread to join. |
|
Pointer to a void pointer in which the thread's exit value is copied. val will be assigned (void*) -1 if the thread is canceled using OSCancelThread. Specify NULL if the thread's exit value is unnecessary. |
Returns TRUE if the specified thread does not have the detached attribute and has ended normally. Otherwise, returns FALSE.
If the specified thread does not have the detached attribute (see the OSDetachThread function), the OSJoinThread function will wait until the specified thread ends, and then generate information about the ended thread.
Multiple threads can't wait for the same thread to end. Success is guaranteed for only one thread; FALSE is returned for all other threads.
Thread Synchronization, Thread Synchronization Functions, OSCancelThread, OSDetachThread, OSExitThread, OSIsThreadTerminated
03/01/2006 Initial version.