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 http-equiv="Content-Style-Type" content="text/css"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8<TITLE>OSGetSemaphoreCount</TITLE> 9</HEAD> 10<BODY> 11<H1>OSGetSemaphoreCount</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction"> 15#include <revolution/os.h> 16 17s32 OSGetSemaphoreCount( OSSemaphore* sem ); 18</pre></dd></dl> 19 20<H2>Arguments</H2> 21<TABLE class="arguments" border="1" > 22 <TBODY> 23 <TR> 24<TH><STRONG><EM><CODE>sem</CODE></EM></STRONG></TH> 25<TD>Pointer to a semaphore.</TD> 26 </TR> 27 </TBODY> 28</TABLE> 29 30<H2>Return Values</H2> 31<P>Returns the current semaphore count.</P> 32 33<H2>Description</H2> 34<P>Returns the current semaphore count. Because the value is not guaranteed to be valid when the function returns, the returned value should be used just as an estimate for program debugging.</P> 35 36<H2>See Also</H2> 37<P class="reference"> 38<A href="../toc.html#Thread" target="contents">Thread Functions</A>, 39<A href="../toc.html#ThreadSynchronization" target="contents">Thread Synchronization Functions</A> 40</P> 41 42<H2>Revision History</H2> 43<P> 442006/03/01 Initial version.<br> 45</P> 46 47<hr><p>CONFIDENTIAL</p></body> 48</HTML>