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

  PUBLIC
MutexLockC::MutexLockC(MutexC &)
MutexLockC::MutexLockC(const MutexC &)
MutexLockC::MutexLockC(const MutexC &,BooleanT)
MutexLockC::~MutexLockC(void)
MutexLockC::Unlock(void)
MutexLockC::Lock(void)
MutexLockC::IsLocked(void) const
MutexLockC
 
Mutex locking class.
 
include "amma/PThread/Mutex.hh"
User Level:Default
Library:PThreadCXX
Example:exChild.cc
Section:Utilities.Threads
In Scope:PThread

Comments:
Used to control locks on mutexs for exception safe resoures locking. It is the users responsability to ensure that the MutexC remains valid for the lifetime of any MutexLockC instance.

SMALL OBJECT

Variables:
MutexC & mutex;

BooleanT locked;

Methods:
MutexLockC(MutexC & m)
Create a lock on a mutex.

MutexLockC(const MutexC & m)
Create a lock on a mutex.
This may not seem like a good idea, but it allows otherwise constant functions to lock out other accesses to data without undue faffing.

MutexLockC(const MutexC & m,BooleanT tryLock)

~MutexLockC()
Create a lock on a mutex.

void Unlock()
Unlock the mutex.

void Lock()
re Lock the mutex.

BooleanT IsLocked() const
Is it locked ?


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