ApparatusFramework::Monitor Class Reference
[Kernel Services]

#include <KernelServices/common/current/include/Monitor.h>

Inheritance diagram for ApparatusFramework::Monitor:
ApparatusFramework::Logger ApparatusFramework::LogMsgMgr ApparatusFramework::MsgMgr ApparatusFramework::Stub< maxLogSize > ApparatusFramework::TimerMgr ApparatusFramework::WinFileSys ApparatusFramework::DoubleDeviceLogger

List of all members.

Public Member Functions

 Monitor ()
virtual ~Monitor ()

Protected Attributes

Mutex m_mutex

Detailed Description

The class monitor implements the same named mechanism of mutual exclusion as defined by O'Hoare. At any time at most one client accesses the resources of the monitor object. All other waiting clients are suspended until the monitor resource is released. This class is a mixin class. Public methods are protected by reserving and releasing the lock declared as field in the monitor. The guard class is provided to implement the idiom of Stroustrup creation is initialization and destruction is release of resources. Two additional macros are provided for a similar purpose. But they are defined only for compatibility of older versions of the kernel services package.

We suggest that all local methods which are not protected by the monitor have the extension "I". These methods are the only methods which you can call from other monitor routines.

Definition at line 67 of file Monitor.h.


Constructor & Destructor Documentation

ApparatusFramework::Monitor::Monitor (  ) 

constructors, destructors Constructs a new monitor object.

virtual ApparatusFramework::Monitor::~Monitor (  )  [virtual]

Destroys the object releases all the associated ressources.


Member Data Documentation

Definition at line 100 of file Monitor.h.

© 2004-2010 bbv Software Services AG / Apparatus Services