]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/crtslock.tex
1. wxFile docs updated, wxTextFile and wxTempFile docs written (thanks HelpGen :-)
[wxWidgets.git] / docs / latex / wx / crtslock.tex
1 \section{\class{wxCriticalSectionLocker}}\label{wxcriticalsectionlocker}
2
3 This is a small helper class to be used with \helpref{wxCriticalSection}{wxcriticalsection}
4 objects. A wxCriticalSectionLocker enters the critical section in the
5 constructor and leaves it in the destructor making it much more difficult to
6 forget to leave a critical section (which, in general, will lead to serious
7 and difficult to debug problems).
8
9 \wxheading{Derived from}
10
11 None.
12
13 \wxheading{See also}
14
15 \helpref{wxCriticalSection}{wxcriticalsection},
16 \helpref{wxMutexLocker}{wxmutexlocker}
17
18 \latexignore{\rtfignore{\wxheading{Members}}}
19
20 \membersection{wxCriticalSectionLocker::wxCriticalSectionLocker}\label{wxcriticalsectionlockerctor}
21 \func{}{wxCriticalSectionLocker}{\param{wxCriticalSection *}{criticalsection}}
22
23 Constructs a wxCriticalSectionLocker object associated with given
24 criticalsection which must be non NULL and enters it.
25
26 \membersection{wxCriticalSectionLocker::\destruct{wxCriticalSectionLocker}}\label{wxcriticalsectionlockerdtor}
27 \func{}{\destruct{wxCriticalSectionLocker}}{\void}
28
29 Destuctor leaves the criticalsection.