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>OSGetCurrentThread</title>
10</head>
11
12<body>
13
14<h1>OSGetCurrentThread</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/os.h&gt;
19
20OSThread* OSGetCurrentThread(void);
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<p>None.</p>
25
26<h2>Return Values</h2>
27<p>Pointer to the current thread.</p>
28
29<h2>Description</h2>
30<p>Gets the pointer to the current thread.<BR><BR>
31
32<B>Note:</B> If this function is called inside an exception handler or a callback function and there is an executing thread, a pointer to that thread is returned. If there is no executing thread, a null pointer is returned.
33
34</p>
35
36<h2>See Also</h2>
37<P>
38<A href="../toc.html#Thread" target="contents">Thread Functions</A><BR> <A href="../toc.html#ThreadSynchronization" target="contents">Thread Synchronization Functions</A>
39</p>
40
41<h2>Revision History</h2>
42<P>
432009/02/19 Added a note about calling this function from inside an exception handler or callback function.<br>2007/03/xx Added a description of the behavior that occurs when invoked from an exception handler or a callback function.<br>2006/03/01 Initial version.
44</p>
45
46<hr><p>CONFIDENTIAL</p></body>
47</html>