+Example of using it:
+
+\begin{verbatim}
+void Set Foo()
+{
+ // gs_critSect is some (global) critical section guarding access to the
+ // object "foo"
+ wxCriticalSectionLocker locker(gs_critSect);
+
+ if ( ... )
+ {
+ // do something
+ ...
+
+ return;
+ }
+
+ // do something else
+ ...
+
+ return;
+}
+\end{verbatim}
+
+Without wxCriticalSectionLocker, you would need to remember to manually leave
+the critical section before each {\tt return}.
+