OS_ExitThread

Syntax

#include <nitro/os.h>
void OS_ExitThread( void );

Arguments

None.

Return Values

None.

Description

This terminates the current thread, then switches to the next executable thread.

All locked mutex of the specified thread are unlocked. Therefore, if there is a thread that becomes executable by unlocking mutex, that thread is executed before a thread that becomes executable due to the end of the current thread.

This function automatically executes when the designated function ends when a thread is generated.

See Also

OS_InitThread, OS_CreateThread, OS_WakeupThread, OS_WakeupThreadDirect
OS_DestroyThread

Revision History

2004/04/05 Added description of unlocking locked mutex
2003/12/01 Initial version


CONFIDENTIAL