Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

stdbase::system::Object::synchronized Class Reference

The analog to the Java "synchronized" keyword to be used to ensure mutual exclusion. More...

List of all members.

Public Methods

 synchronized (const synchronized &s)
 This copy constructor allows a developer to obtain a synchronized instance and keep it for the life of the current scope. More...

 ~synchronized ()
 Called when local copy of a synchronized instance goes out of scope.


Friends

class Object


Detailed Description

The analog to the Java "synchronized" keyword to be used to ensure mutual exclusion.

Instances are created using the Object's synchronize() method.

Definition at line 100 of file Object.


Constructor & Destructor Documentation

stdbase::system::Object::synchronized::synchronized const synchronized & s [inline]
 

This copy constructor allows a developer to obtain a synchronized instance and keep it for the life of the current scope.

So, for some class derived from Object, a method could do the following to ensure mutual exclusion.

  void foo_method()
  {
      Object::sychronized s = synchronize();
      
      // -- do whatever necessary...
  }
  

Definition at line 132 of file Object.


The documentation for this class was generated from the following file:
Generated at Tue Aug 13 14:19:42 2002 for stdnet2 by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001