1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>OS_ExitThread</TITLE> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">OS_ExitThread <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></H1> 12<H2>Syntax</H2> 13<DL> 14 <DD> 15 <PRE><CODE>#include <nitro/os.h></CODE></PRE> 16 <PRE><CODE>void OS_ExitThread( void );</CODE></PRE> 17</DL> 18<H2>Arguments</H2> 19<P>None.</P> 20<H2>Return Values</H2> 21<P>None.</P> 22<H2>Description</H2> 23<P><span class=msoins0><span style='font-family:Arial'>This terminates the current thread, </span></span><span class=grame><span style='font-family:Arial'>then</span></span><span class=msoins0><span style='font-family:Arial'> switches to the next executable thread.</span></span></P> 24<P>All locked <em>mutex</em> of the specified thread are unlocked. Therefore, if there is a thread that becomes executable by unlocking </span></span><span class=spelle><span style='font-family:Arial'>mutex</span></span><span class=msoins0><span style='font-family:Arial'>, that thread is executed before a thread that becomes executable due to the end of the current thread.</span></span></P> 25<P>This function automatically executes when the designated function ends when a thread is generated.</P> 26<H2>See Also</H2> 27<P><CODE><A href="OS_InitThread.html">OS_InitThread</A>, <A href="OS_CreateThread.html">OS_CreateThread</A>, <A href="OS_WakeupThread.html">OS_WakeupThread</A>, <A href="OS_WakeupThreadDirect.html">OS_WakeupThreadDirect</A></CODE><BR> <CODE><A href="OS_DestroyThread.html">OS_DestroyThread</A></CODE></P> 28<H2>Revision History</H2> 29<P>2004/04/05 Added description of unlocking locked mutex <BR>2003/12/01 Initial version</P> 30<hr><p>CONFIDENTIAL</p></body> 31</HTML>