LibreOffice Module comphelper (master) 1
|
helper class for guarding the entry into OCommonAccessibleComponent methods. More...
#include <accessiblecontexthelper.hxx>
Public Member Functions | |
OContextEntryGuard (OCommonAccessibleComponent *_pContext) | |
constructs the guard More... | |
helper class for guarding the entry into OCommonAccessibleComponent methods.
The class has two responsibilities:
This makes it your first choice (hopefully :) for guarding any interface method implementations of you derived class.
Definition at line 45 of file accessiblecontexthelper.hxx.
|
inline |
constructs the guard
The given context (it's mutex, respectively) is locked, and an exception is thrown if the context is not alive anymore. In the latter case, of course, the mutex is freed, again.
_pContext | the context which shall be guarded @precond <arg>_pContext</arg> != NULL |
Definition at line 61 of file accessiblecontexthelper.hxx.
References comphelper::OCommonAccessibleComponent::ensureAlive().