# OS_IsThreadTerminated

## C Specification

      #include <nitro/os.h>

      BOOL OS_IsThreadTerminated( const OSThread* thread );

## Arguments

thread | Pointer to the thread to be checked for termination.

## Return Values

Returns TRUE if the specified thread has already terminated, otherwise FALSE.

## Description

Indicates whether or not the thread has terminated. Checks the status parameter of the `OSThread` structure thread and returns whether it was ended by `OS_ExitThread()`. If the thread has terminated it will be TRUE; if not, then FALSE. If TRUE is returned, the `OSThread` structure has already been discarded from the thread system, so it may be used to create another thread.

## See Also

`OS_InitThread`, `OS_ExitThread`

## Revision History

09/06/2005 Added const to OSThread* type arguments.
06/25/2004 Initial version.

CONFIDENTIAL