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

ONE::util::Lock Class Reference

List of all members.

Detailed Description

a thread lock

Lock objects lock their creator at construction time and unlock it when they themselves go out of scope. This assures that the lock is released regardless of how a locking block was exited.

Note:
This class has ownership transfer semantics. Objects passed to the copy ctor or assigned to another Lock instance will be invalidated.
Author:
Daniel Seibert


Public Member Functions

 Lock (Lock &)
Lockoperator= (Lock &)
void release ()
 releases the lock
 ~Lock ()


Constructor & Destructor Documentation

ONE::util::Lock::Lock Lock  ) 
 

ONE::util::Lock::~Lock  ) 
 


Member Function Documentation

Lock& ONE::util::Lock::operator= Lock  ) 
 

void ONE::util::Lock::release  ) 
 

releases the lock

This function may be used to release the lock at an earlier time than this Lock object's destruction.

Exceptions:
EngineException if the operation fails


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