]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/crtslock.tex
more samples are being built and samples/Makefiles uses SAMPLES_SUBDIRS
[wxWidgets.git] / docs / latex / wx / crtslock.tex
CommitLineData
6e6110ee
VZ
1\section{\class{wxCriticalSectionLocker}}\label{wxcriticalsectionlocker}
2
3This is a small helper class to be used with \helpref{wxCriticalSection}{wxcriticalsection}
4objects. A wxCriticalSectionLocker enters the critical section in the
5constructor and leaves it in the destructor making it much more difficult to
6forget to leave a critical section (which, in general, will lead to serious
7and difficult to debug problems).
8
9\wxheading{Derived from}
10
11None.
12
954b8ae6
JS
13\wxheading{Include files}
14
15<wx/thread.h>
16
6e6110ee
VZ
17\wxheading{See also}
18
b82827dd 19\helpref{wxCriticalSection}{wxcriticalsection},
6e6110ee
VZ
20\helpref{wxMutexLocker}{wxmutexlocker}
21
22\latexignore{\rtfignore{\wxheading{Members}}}
23
24\membersection{wxCriticalSectionLocker::wxCriticalSectionLocker}\label{wxcriticalsectionlockerctor}
b82827dd 25
6e6110ee
VZ
26\func{}{wxCriticalSectionLocker}{\param{wxCriticalSection *}{criticalsection}}
27
28Constructs a wxCriticalSectionLocker object associated with given
29criticalsection which must be non NULL and enters it.
30
31\membersection{wxCriticalSectionLocker::\destruct{wxCriticalSectionLocker}}\label{wxcriticalsectionlockerdtor}
b82827dd 32
6e6110ee
VZ
33\func{}{\destruct{wxCriticalSectionLocker}}{\void}
34
35Destuctor leaves the criticalsection.
b82827dd 36