1 \section{\class{wxCondition
}}\label{wxcondition
}
3 Condition class for code protection in multithreaded applications.
5 \wxheading{Derived from
}
9 \wxheading{Include files
}
15 \helpref{wxThread
}{wxthread
},
\helpref{wxMutex
}{wxmutex
}
17 \latexignore{\rtfignore{\wxheading{Members
}}}
19 \membersection{wxCondition::wxCondition
}\label{wxconditionconstr
}
21 \func{}{wxCondition
}{\void}
25 \membersection{wxCondition::
\destruct{wxCondition
}}
27 \func{}{\destruct{wxCondition
}}{\void}
29 Destroys the wxCondition object.
31 \membersection{wxCondition::Broadcast
}\label{wxconditionbroadcast
}
33 \func{void
}{Broadcast
}{\void}
35 Broadcasts to all waiting objects.
37 \membersection{wxCondition::Signal
}\label{wxconditionsignal
}
39 \func{void
}{Signal
}{\void}
43 \membersection{wxCondition::Wait
}\label{wxconditionwait
}
45 \func{void
}{Wait
}{\param{wxMutex\&
}{ mutex
}}
49 \func{bool
}{Wait
}{\param{wxMutex\&
}{ mutex
},
\param{unsigned long
}{ sec
},
\param{unsigned long
}{ nsec
}}
51 Waits until a signal is raised or the timeout has elapsed.
53 \wxheading{Parameters
}
55 \docparam{mutex
}{wxMutex object.
}
57 \docparam{sec
}{Timeout in seconds
}
59 \docparam{nsec
}{Timeout nanoseconds component (added to
{\it sec
}).
}
61 \wxheading{Return value
}
63 The second form returns if the signal was raised, or FALSE if there was a timeout.