class recursivemutex : public mutex Class to store a recuresive mutex.
| | recursivemutex () Default constructor. |
| | recursivemutex (const recursivemutex&) Copy constructor. |
| | operator= (const recursivemutex&) Assignment operator. |
| | lock () Mutex lock function. |
| | unlock () Mutex unlock function. |
| | trylock (locktype lck = rdlock) Mutex trylock function. |
This class is used as a wrapper around a system defined mutex. A recursive mutex is similar to a normal mutex object, but it allows a single task/thread to take a mutex multiple times. This is useful for a set of routines/methods that must call each other but that also require mutually exclusive access to a resource. The recursive mutex keeps track which task/thraad currently owns the mutex and also keeps a reference count on how often it was locked. The system mutex will only be released after the last unlock call. Under Unix this mutex is less effcient than the normal mutex, but sometimes convinient. Under VxWorks this is the default behaviour.
recursivemutex(const recursivemutex&)
recursivemutex& operator= (const recursivemutex&)
virtual void lock()
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++