# OS_IsThreadTerminated

## C Specification

    #include <nitro/os.h>

    BOOL OS_IsThreadTerminated( OSThread* thread );

## Description

Obtains whether or not the thread has terminated.

It checks the status parameter ot `OSThread` structure specified by the thread, checkes whether or not it has terminated using `O_ExitThread()` and returns that result. If the return value has terminated it will be TRUE, if not, then FALSE.

When TRUE is returned, that OSThread structure will have already been separated from the thread system, so it may be used to create a different thread.

## Arguments

`thread` | Points to the thread that checks for termination.

## Return Value

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

## Reference

`OS_InitThread, OS_ExitThread`

## History

06/25/2004 First Edition