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_InitEvent</TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">OS_InitEvent <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 &lt;nitro/os.h&gt;</CODE></PRE>
16  <PRE><CODE>void OS_InitEvent( OSEvent* event );
17  </CODE></PRE>
18</DL>
19<H2>Arguments</H2>
20<TABLE border="1" width="100%">
21  <TBODY>
22    <TR>
23<TD width="13%"><CODE>event</CODE></TD>
24<TD width="87%">Pointer to the event structure to be initialized.</TD>
25    </TR>
26  </TBODY>
27</TABLE>
28<H2>Return Values</H2>
29<P>None.</P>
30<H2>Description</H2>
31<P>Initializes the event structure.</P>
32<P>Initializes the event structure used for &quot;synchronous wait&quot; system events. The <CODE>event</CODE> argument is a pointer to the event structure to be initialized. Be sure to allocate the instance on the application side.</P>
33<P>This function sets the structure's event flag member to 0, and initializes the structure's thread queue member.</P>
34<P>Example:</P>
35<BLOCKQUOTE>
36<table style="width:80%">
37<tr>
38<td style="background-color:lightyellow"><CODE>OSEvent myEvent;<BR> <BR> OS_InitEvent( &amp;myEvent );<BR></CODE></td>
39</tr>
40</table>
41</BLOCKQUOTE>
42<H2>See Also</H2>
43<P><A href="OS_WaitEvent.html"><CODE>OS_WaitEvent*</CODE></A><BR> <A href="OS_SignalEvent.html"><CODE>OS_SignalEvent</CODE></A><BR> <A href="OS_ClearEvent.html"><CODE>OS_Clear*Event</CODE></A><BR> <A href="OS_PollEvent.html"><CODE>OS_PollEvent*</CODE></A><BR> <A href="about_Event.html">OS Overview (Events)</A></P>
44<H2>Revision History</H2>
45<P>2007/12/04 Initial version.</P>
46<hr><p>CONFIDENTIAL</p></body>
47</HTML>