OMProtected is the base class for protected objects. It embodies a mutex and lock and unlock methods that are automatically embedded within a concrete public method defined for the object.
Aggregates OMProtected objects inside
guarded classes instead of inheriting from OMProtected.
It is defined as follows:
#define
OMDECLARE_GUARDED
public:
inline void lock() const {m_omGuard.lock();}
inline void
unlock() const {m_omGuard.unlock();}
inline const OMProtected&
getGuard() const
{return m_omGuard;}
private:
OmProtected m_omGuard;