#include <lock.h>
Public Member Functions | |
AutoLock (Lock &lock, string l) | |
AutoLock (Lock *lock, string l) | |
~AutoLock () |
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.
AutoLock::AutoLock | ( | Lock & | lock, | |
string | l | |||
) | [inline] |
AutoLock::AutoLock | ( | Lock * | lock, | |
string | l | |||
) | [inline] |
AutoLock::~AutoLock | ( | ) | [inline] |