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_CreateThread</TITLE> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">OS_Clear*Event <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_ClearEvent( OSEvent* event, u32 clearBit ); 17void OS_ClearAllEvent( OSEvent* event ); 18 19 </CODE></PRE> 20</DL> 21<H2>Arguments</H2> 22<TABLE border="1" width="100%"> 23 <TBODY> 24 <TR> 25 <TD width="13%"><EM><STRONG>event</STRONG></EM></TD> 26 <TD width="87%">Pointer to an event structure whose event flag will be cleared.</TD> 27 </TR> 28 <TR> 29 <TD><B><I>clearBit</I></B></TD> 30 <TD>The bit of the event flag to clear.</TD> 31 </TR> 32 </TBODY> 33</TABLE> 34<H2>Return Values</H2> 35<P>None.</P> 36<H2>Description</H2> 37<P>Clears an event flag member of the event structure.</P> 38<P><EM><B>event</B></EM> is a pointer to an event structure. <CODE>OS_ClearEvent()</CODE> will clear the event flag member of <B><I>event</I></B> for the bit indicated by <B><I>clearBit</I></B>.</P> 39<P><CODE>OS_ClearAllEvent()</CODE> will clear all bits. In other words, it sets the event flag of <B><I>event</I></B> to 0.</P> 40<P>Internally, this just sets a value for the member of the structure, so the system will not switch threads as a result of this function.</P> 41<H2>See Also</H2> 42<P><CODE><A href="OS_InitEvent.html">OS_InitEvent</A>, <A href="OS_WaitEvent.html">OS_WaitEvent*</A>, <A href="OS_SignalEvent.html">OS_SignalEvent</A>, <A href="OS_PollEvent.html">OS_PollEvent*</A>, <A href="about_Event.html">OS Overview (Events)</A><BR></CODE></P> 43<H2>Revision History</H2> 44<P>2007/12/04 Initial version.</P> 45<hr><p>CONFIDENTIAL</p></body> 46</HTML>