AutoLock Class Reference

Helper class to lock an object within a certain scope. More...

#include <lock.h>

Collaboration diagram for AutoLock:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AutoLock (Lock &lock, string l)
 AutoLock (Lock *lock, string l)
 ~AutoLock ()


Detailed Description

Helper class to lock an object within a certain scope.

The Synchronized(Lock) macro will allocate an AutoLock in the current scope. As soon as the control flow goes out of scope, the lock will automatically be released. E.g Synchronized(active-object) will lock the object Synchronized(this) will lock this object for the duration of the scope.

Definition at line 93 of file lock.h.


Constructor & Destructor Documentation

AutoLock::AutoLock ( Lock lock,
string  l 
) [inline]

waits until lock is locked

Definition at line 100 of file lock.h.

Here is the call graph for this function:

AutoLock::AutoLock ( Lock lock,
string  l 
) [inline]

waits until lock is locked

Definition at line 107 of file lock.h.

Here is the call graph for this function:

AutoLock::~AutoLock (  )  [inline]

unlocks the underlying lock

Definition at line 114 of file lock.h.

Here is the call graph for this function:


The documentation for this class was generated from the following file:

Generated on Sun Apr 4 23:26:08 2010 for Active Objects by  doxygen 1.5.9