X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7b4d7f99a60c095ecd28a3e72d48241abe9f7fdb..c266eff98c5e44012647f54f38a1e29ecabd8759:/docs/latex/wx/recguard.tex?ds=sidebyside diff --git a/docs/latex/wx/recguard.tex b/docs/latex/wx/recguard.tex index f7bdfa0cdf..7f1f3b4b81 100644 --- a/docs/latex/wx/recguard.tex +++ b/docs/latex/wx/recguard.tex @@ -12,11 +12,11 @@ \section{\class{wxRecursionGuard}}\label{wxrecursionguard} wxRecursionGuard is a very simple class which can be used to prevent reentrancy -problems in a function. It is not thread-safe and so should be used only in the +problems in a function. It is not thread-safe and so should be used only in single-threaded programs or in combination with some thread synchronization mechanisms. -wxRecursionGuard is always used together with +wxRecursionGuard is always used together with the \helpref{wxRecursionGuardFlag}{wxrecursionguardflag} like in this example: \begin{verbatim} void Foo() @@ -35,7 +35,7 @@ wxRecursionGuard is always used together with As you can see, wxRecursionGuard simply tests the flag value and sets it to true if it hadn't been already set. -\helpref{IsInside()}{wxrecursionguardisinside} allows to test the old flag +\helpref{IsInside()}{wxrecursionguardisinside} allows testing the old flag value. The advantage of using this class compared to directly manipulating the flag is that the flag is always reset in the wxRecursionGuard destructor and so you don't risk to forget to do it even if the function returns in an unexpected @@ -49,6 +49,10 @@ No base class +\wxheading{Library} + +\helpref{wxBase}{librarieslist} + \latexignore{\rtfignore{\wxheading{Members}}}