User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Locks - MTWriteLockC
 

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

   MTWriteLockC   
 
Lock system for writing.
 
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:
MTWriteLockC(int nlockId = 0)
Construct lock.

~MTWriteLockC()
Construct lock.

void Unlock()
Unlock.

void Lock()
Relock for writing.


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