]>
Commit | Line | Data |
---|---|---|
6e6110ee VZ |
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 | ||
b82827dd | 15 | \helpref{wxCriticalSection}{wxcriticalsection}, |
6e6110ee VZ |
16 | \helpref{wxMutexLocker}{wxmutexlocker} |
17 | ||
18 | \latexignore{\rtfignore{\wxheading{Members}}} | |
19 | ||
20 | \membersection{wxCriticalSectionLocker::wxCriticalSectionLocker}\label{wxcriticalsectionlockerctor} | |
b82827dd | 21 | |
6e6110ee VZ |
22 | \func{}{wxCriticalSectionLocker}{\param{wxCriticalSection *}{criticalsection}} |
23 | ||
24 | Constructs a wxCriticalSectionLocker object associated with given | |
25 | criticalsection which must be non NULL and enters it. | |
26 | ||
27 | \membersection{wxCriticalSectionLocker::\destruct{wxCriticalSectionLocker}}\label{wxcriticalsectionlockerdtor} | |
b82827dd | 28 | |
6e6110ee VZ |
29 | \func{}{\destruct{wxCriticalSectionLocker}}{\void} |
30 | ||
31 | Destuctor leaves the criticalsection. | |
b82827dd | 32 |