X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e6110ee8194ee39944dffd57cce9f22cd8b961e..b44f1ca20bd4d5c6970228e476ce74d4347a6ff3:/docs/latex/wx/mutexlck.tex diff --git a/docs/latex/wx/mutexlck.tex b/docs/latex/wx/mutexlck.tex index b0d565663c..9fbfbaec9c 100644 --- a/docs/latex/wx/mutexlck.tex +++ b/docs/latex/wx/mutexlck.tex @@ -3,7 +3,7 @@ This is a small helper class to be used with \helpref{wxMutex}{wxmutex} objects. A wxMutexLocker acquires a mutex lock in the constructor and releases (or unlocks) the mutex in the destructor making it much more difficult to -forget to release a mutex (which, in general, will promptly lead to the serious +forget to release a mutex (which, in general, will promptly lead to serious problems). See \helpref{wxMutex}{wxmutex} for an example of wxMutexLocker usage. @@ -11,26 +11,33 @@ usage. None. +\wxheading{Include files} + + + \wxheading{See also} -\helpref{wxMutex}{wxmutex}, -\helpref{wxCriticalSectionLocker}{wxcriticalsectionlocker} +\helpref{wxMutex}{wxmutex}, \helpref{wxCriticalSectionLocker}{wxcriticalsectionlocker} \latexignore{\rtfignore{\wxheading{Members}}} \membersection{wxMutexLocker::wxMutexLocker}\label{wxmutexlockerctor} -\func{}{wxMutexLocker}{\param{wxMutex *}{mutex}} -Constructs a wxMutexLocker object associated with mutex which must be non NULL -and locks it. Call \helpref{IsOk}{wxmutexisok} to check if the mutex was +\func{}{wxMutexLocker}{\param{wxMutex\&}{ mutex}} + +Constructs a wxMutexLocker object associated with mutex and locks it. +Call \helpref{IsLocked}{wxmutexlockerisok} to check if the mutex was successfully locked. \membersection{wxMutexLocker::\destruct{wxMutexLocker}}\label{wxmutexlockerdtor} + \func{}{\destruct{wxMutexLocker}}{\void} -Destuctor releases the mutex if it was successfully acquired in the ctor. +Destructor releases the mutex if it was successfully acquired in the ctor. \membersection{wxMutexLocker::IsOk}\label{wxmutexlockerisok} + \constfunc{bool}{IsOk}{\void} -Returns TRUE if mutex was acquired in the constructor, FALSE otherwise. +Returns true if mutex was acquired in the constructor, false otherwise. +