Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ONE::util::Mutex Class Reference

Inheritance diagram for ONE::util::Mutex:

Inheritance graph
[legend]
List of all members.

Detailed Description

used to synchronize multiple threads

One thread may lock a Mutex several times without blocking, however, calls from different threads will block.

Author:
Daniel Seibert


Public Member Functions

Condition createCondition () const
 creates a Condition object for this mutex
Lock createLock () const
 locks this object
 Mutex ()
 ~Mutex ()

Protected Attributes

friend Lock


Constructor & Destructor Documentation

ONE::util::Mutex::Mutex  ) 
 

ONE::util::Mutex::~Mutex  ) 
 


Member Function Documentation

Condition ONE::util::Mutex::createCondition  )  const
 

creates a Condition object for this mutex

Note that this mutex must be locked before the Condition can be used.

Lock ONE::util::LockSmith::createLock  )  const [inherited]
 

locks this object

The lock is released when the returned Lock object is destroyed or when Lock::release is called on it.

Exceptions:
EngineException if the lock cannot be acquired


Member Data Documentation

friend ONE::util::LockSmith::Lock [protected, inherited]
 


Generated on Wed Sep 7 19:03:32 2005 for ONEngine by  doxygen 1.4.3