1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>OSIsThreadTerminated</title>
10</head>
11
12<body>
13
14<h1>OSIsThreadTerminated</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/os.h&gt;
19
20BOOL OSIsThreadTerminated(OSThread* thread);
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<TH>thread</TH>
27<TD>Pointer to the thread to check.</TD>
28  </tr>
29</TABLE>
30
31<h2>Return Values</h2>
32<p><code>TRUE</code> if the thread is terminated; otherwise <code>FALSE</code>.&nbsp; </p>
33
34<h2>Description</h2>
35<p>Checks whether the specified thread is stopped.</p>
36
37<p>In the case of detached threads, a thread could have terminated, and the thread control block may have been reused for a new thread.&nbsp;In this case, a message or global variable is safer to use as notification to determine if a thread was terminated.</p>
38
39<h2>See Also</h2>
40<P class="reference">
41<A href="../toc.html#Thread" target="contents">Thread Functions</A>,
42<A href="../toc.html#ThreadSynchronization" target="contents">Thread Synchronization Functions</A>,
43<a href="OSCancelThread.html">OSCancelThread</a>,
44<a href="OSDetachThread.html">OSDetachThread</a>,
45<a href="OSExitThread.html">OSExitThread</a>,
46<a href="OSJoinThread.html">OSJoinThread</a>
47</p>
48
49<h2>Revision History</h2>
50<P>
512006/03/01 Initial version.<br>
52</p>
53
54<hr><p>CONFIDENTIAL</p></body>
55</html>