OSIsThreadTerminated

C Specification

#include <revolution/os.h>
BOOL OSIsThreadTerminated (OSThread* thread);

Arguments

thread Pointer to the thread to check.

Return Values

Returns TRUE if the thread has been terminated; otherwise, FALSE

Description

Checks whether the specified thread is terminated.

In the case of detached threads, a thread could have terminated, and the thread control block may have been reused for a new thread. In this case, a message or global variable is safer to use as notification to determine if a thread was terminated.

See Also

Thread Synchronization, Thread Synchronization Functions, OSCancelThreadOSDetachThreadOSExitThreadOSJoinThread

Revision History

03/01/2006 Initial version.