User Documentation
RAVL, Recognition And Vision Library
DEVELOP 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 
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:
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:02 2002