1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
<HTML>
<head><title>wxCondition</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxcondition"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx53.htm#wxcommandprocessor"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx55.htm#wxconfigbase"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxCondition</H2>
<P>
TODO<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
None.<P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
<wx/thread.h><P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx246.htm#wxthread">wxThread</A>, <A HREF="wx153.htm#wxmutex">wxMutex</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#wxconditionconstr">wxCondition::wxCondition</A><BR>
<A HREF="#topic129">wxCondition::~wxCondition</A><BR>
<A HREF="#wxconditionbroadcast">wxCondition::Broadcast</A><BR>
<A HREF="#wxconditionsignal">wxCondition::Signal</A><BR>
<A HREF="#wxconditionwait">wxCondition::Wait</A><BR>
<P>
<HR>
<A NAME="wxconditionconstr"></A>
<H3>wxCondition::wxCondition</H3>
<P>
<B></B> <B>wxCondition</B>()<P>
Default constructor.<P>
<HR>
<A NAME="topic129"></A>
<H3>wxCondition::~wxCondition</H3>
<P>
<B></B> <B>~wxCondition</B>()<P>
Destroys the wxCondition object.<P>
<HR>
<A NAME="wxconditionbroadcast"></A>
<H3>wxCondition::Broadcast</H3>
<P>
<B>void</B> <B>Broadcast</B>()<P>
Broadcasts to all waiting objects.<P>
<HR>
<A NAME="wxconditionsignal"></A>
<H3>wxCondition::Signal</H3>
<P>
<B>void</B> <B>Signal</B>()<P>
Signals the object.<P>
<HR>
<A NAME="wxconditionwait"></A>
<H3>wxCondition::Wait</H3>
<P>
<B>void</B> <B>Wait</B>(<B>wxMutex&</B><I> mutex</I>)<P>
Waits indefinitely.<P>
<B>bool</B> <B>Wait</B>(<B>wxMutex&</B><I> mutex</I>, <B>unsigned long</B><I> sec</I>, <B>unsigned long</B><I> nsec</I>)<P>
Waits until a signal is raised or the timeout has elapsed.<P>
<B><FONT COLOR="#FF0000">Parameters</FONT></B><P>
<I>mutex</I><UL><UL>
wxMutex object.</UL></UL>
<P>
<I>sec</I><UL><UL>
Timeout in seconds</UL></UL>
<P>
<I>nsec</I><UL><UL>
Timeout nanoseconds component (added to <I>sec</I>).</UL></UL>
<P>
<B><FONT COLOR="#FF0000">Return value</FONT></B><P>
The second form returns if the signal was raised, or FALSE if there was a timeout.<P>
</BODY></HTML>
|