Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Locks - MTReadLockC
 

  PUBLIC
MTReadLockC::MTReadLockC(int)
MTReadLockC::~MTReadLockC(void)
MTReadLockC::Unlock(void)
MTReadLockC::Lock(void)

   MTReadLockC   
 
Lock system for reading.
 
include "Ravl/MTLocks.hh"
Created:24/01/2001 
Source file:Ravl/Core/Base/MTLocks.hh
User Level:Advanced
Library:RavlCore
In Scope:RavlN

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 MTWriteLock(), you have to Unlock the ReadLock first.

Variables:
int lockId;

bool held;
True if lock is held.

Methods:
MTReadLockC(int nlockId = 0)
Construct lock.

~MTReadLockC()
Construct lock.

void Unlock()
Unlock.

void Lock()
Relock for reading.


Maintainer:Charles Galambos, Created: 24/01/2001, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002