1999-01-02 18:02:30 -05:00
|
|
|
\section{\class{wxCriticalSectionLocker}}\label{wxcriticalsectionlocker}
|
|
|
|
|
|
|
|
This is a small helper class to be used with \helpref{wxCriticalSection}{wxcriticalsection}
|
|
|
|
objects. A wxCriticalSectionLocker enters the critical section in the
|
|
|
|
constructor and leaves it in the destructor making it much more difficult to
|
|
|
|
forget to leave a critical section (which, in general, will lead to serious
|
|
|
|
and difficult to debug problems).
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
None.
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/thread.h>
|
|
|
|
|
1999-01-02 18:02:30 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
1999-01-17 14:25:06 -05:00
|
|
|
\helpref{wxCriticalSection}{wxcriticalsection},
|
1999-01-02 18:02:30 -05:00
|
|
|
\helpref{wxMutexLocker}{wxmutexlocker}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxCriticalSectionLocker::wxCriticalSectionLocker}\label{wxcriticalsectionlockerctor}
|
1999-01-17 14:25:06 -05:00
|
|
|
|
1999-01-02 18:02:30 -05:00
|
|
|
\func{}{wxCriticalSectionLocker}{\param{wxCriticalSection *}{criticalsection}}
|
|
|
|
|
|
|
|
Constructs a wxCriticalSectionLocker object associated with given
|
|
|
|
criticalsection which must be non NULL and enters it.
|
|
|
|
|
|
|
|
\membersection{wxCriticalSectionLocker::\destruct{wxCriticalSectionLocker}}\label{wxcriticalsectionlockerdtor}
|
1999-01-17 14:25:06 -05:00
|
|
|
|
1999-01-02 18:02:30 -05:00
|
|
|
\func{}{\destruct{wxCriticalSectionLocker}}{\void}
|
|
|
|
|
|
|
|
Destuctor leaves the criticalsection.
|
1999-01-17 14:25:06 -05:00
|
|
|
|