class mutex : public abstractsemaphore Class to store a mutex.
| | mutex () Default constructor. |
| | ~mutex () Default destructor. |
| | mutex (const mutex&) Copy constructor. |
| | operator= (const mutex&) Assignment operator. |
| | lock () Mutex lock function. |
| | readlock () Mutex readlock function. |
| | writelock () Mutex writelock function. |
| | unlock () Mutex unlock function. |
| | trylock (locktype lck = rdlock) Mutex trylock function. |
This class is used as a wrapper around a system defined mutex. During construction the mutex is created and during desctruction it is automatically destroyed. A mutex object describes a unique mutex which can not be copied. When passing a mutex object to a function it has to be passed by reference or by pointer (never by value). There are methods to lock, unlock and trylock the mutex. On Unix the object uses the POSIX standard, whereas under VxWorks it uses the native mutex Lock and unlock methods must always be used in pairs within the same context.
virtual ~mutex()
mutex(const mutex&)
mutex& operator= (const mutex&)
virtual void lock()
virtual void readlock()
virtual void writelock()
virtual void unlock()
virtual bool trylock(locktype lck = rdlock)
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++