Public Member Functions
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.
constructors, destructors Constructs a new monitor object.
Destroys the object releases all the associated ressources.
© 2004-2010 bbv Software Services AG / Apparatus Services