#include <fxmitmutex.hh>

Public Member Functions | |
| mutex () | |
| virtual | ~mutex () |
| mutex (const mutex &) | |
| mutex & | operator= (const mutex &mux) |
| virtual void | lock () |
| virtual void | readlock () |
| virtual void | writelock () |
| virtual void | unlock () |
| virtual bool | trylock (locktype lt=rdlock) |
Protected Attributes | |
| mutexID_t | mux |
| Mutex identifier. | |
brief Class to store a mutex.
| framexmit::mutex::mutex | ( | ) | [inline] |
| virtual framexmit::mutex::~mutex | ( | ) | [virtual] |
| framexmit::mutex::mutex | ( | const mutex & | ) | [inline] |
Overrides the default assignment behaviour. Does nothing. brief Assignment operator.
| mux | mutex copy argument |
| virtual void framexmit::mutex::lock | ( | ) | [inline, virtual] |
Locks the mutex. If the mutex is not available waits until it becomes free. brief Mutex lock function.
Implements framexmit::abstractsemaphore.
Reimplemented in framexmit::recursivemutex.
| virtual void framexmit::mutex::readlock | ( | ) | [inline, virtual] |
Locks the mutex for read, same as lock(). brief Mutex readlock function.
Implements framexmit::abstractsemaphore.
| virtual void framexmit::mutex::writelock | ( | ) | [inline, virtual] |
Locks the mutex for write, same as lock(). brief Mutex writelock function.
Implements framexmit::abstractsemaphore.
| virtual void framexmit::mutex::unlock | ( | ) | [inline, virtual] |
Unlocks the mutex. The mutex becomes free. brief Mutex unlock function.
Implements framexmit::abstractsemaphore.
Reimplemented in framexmit::recursivemutex.
| virtual bool framexmit::mutex::trylock | ( | locktype | lt = rdlock |
) | [inline, virtual] |
Trys to lock the mutex. If the mutex is free, it gets locked and the method returns true. If the mutex is already taken, the method returns false. brief Mutex trylock function.
| lt | writeaccess ignored |
Implements framexmit::abstractsemaphore.
Reimplemented in framexmit::recursivemutex.
1.5.4