954b8ae603
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
37 lines
1.1 KiB
TeX
37 lines
1.1 KiB
TeX
\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.
|
|
|
|
\wxheading{Include files}
|
|
|
|
<wx/thread.h>
|
|
|
|
\wxheading{See also}
|
|
|
|
\helpref{wxCriticalSection}{wxcriticalsection},
|
|
\helpref{wxMutexLocker}{wxmutexlocker}
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
\membersection{wxCriticalSectionLocker::wxCriticalSectionLocker}\label{wxcriticalsectionlockerctor}
|
|
|
|
\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}
|
|
|
|
\func{}{\destruct{wxCriticalSectionLocker}}{\void}
|
|
|
|
Destuctor leaves the criticalsection.
|
|
|