OS_IsThreadTerminated

Syntax

#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

2005/09/06 Added const to the argument of the OSThread* model.
2004/06/25 Initial version.


CONFIDENTIAL