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>OSInitCond</title>
10</head>
11
12<body>
13
14<h1>OSInitCond</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20<dd><pre><code>#include &lt;revolution/os.h&gt;</code></pre>
21  </dd>
22<dd><pre><code>void OSInitCond (OSCond* cond);</code></pre>
23  </dd>
24</dl>
25
26<h2>Arguments</h2>
27<TABLE border="1" cellpadding="3" cellspacing="0.1">
28  <tr>
29<TD width="120" bgcolor="#ffffe8"><i><b><code><STRONG><EM><CODE>cond</CODE></EM></STRONG></code></b></i></TD>
30<TD width="520">Pointer to condition variable.</TD>
31    </tr>
32</TABLE>
33<h2>Return Values</h2>
34
35<p>None.</p>
36
37<h2>Description</h2>
38
39<p>Initializes the condition variable.&nbsp;Initializing a condition variable that has any sleeping threads results in a program error.</p>
40
41<p>See the <a href="OSWaitCond.html"><code>OSWaitCond</code></a> function for an example program.</p>
42
43
44
45<h2>See Also</h2>
46
47<p><a href="../toc.html#Thread" target="contents">Thread Functions</a>, <a href="../toc.html#ThreadSynchronization" target="contents">Thread Synchronization Functions</a>, <a href="OSInitMutex.html"><code>OSInitMutex</code></a>, <a href="OSLockMutex.html"><code>OSLockMutex</code></a>, <a href="OSSignalCond.html"><code>OSSignalCond</code></a>, <a href="OSTryLockMutex.html"><code>OSTryLockMutex</code></a>, <a href="OSUnlockMutex.html"><code>OSUnlockMutex</code></a>, <a href="OSWaitCond.html"><code>OSWaitCond</code></a></p>
48
49<h2>Revision History</h2><p></p>
50
51<P>2006/03/01 Initial version.</p>
52
53<hr>
54<P>CONFIDENTIAL</p>
55</BODY>
56</HTML>