Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
SysDBReadLockC::SysDBReadLockC(int)
SysDBReadLockC::~SysDBReadLockC(void)
SysDBReadLockC::Unlock(void)
SysDBReadLockC::Lock(void)
SysDBReadLockC
 
Lock system for reading.
 
include "amma/SysDBLock.hh"
User Level:Default
Library:Mtype
Section:Basic Types
In Scope:std

Comments:
This class provides exceptions safe system DB locking. NB. The locking mechanism is NOT garuanteed to be recursive, so you can't call ReadLock twice then Unlock twice. You also can't go directly between a read lock to a write lock just by calling SysDBWriteLock(), you have to Unlock the ReadLock first.

Variables:
int lockId;

BooleanT held;
True if lock is held.

Methods:
SysDBReadLockC(int nlockId = 0)

~SysDBReadLockC()
Construct lock.

void Unlock()
Unlock.

void Lock()
Relock for reading.


Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001