#include <fxmitmutex.hh>

Public Member Functions | |
| recursivemutex () | |
| recursivemutex (const recursivemutex &rmux) | |
| recursivemutex & | operator= (const recursivemutex &rm) |
| virtual void | lock () |
| virtual void | unlock () |
| virtual bool | trylock (locktype lck=rdlock) |
Protected Attributes | |
| taskID_t | threadID |
| Thread identifier. | |
| int | refcount |
| Reference count. | |
brief Class to store a recuresive mutex.
| framexmit::recursivemutex::recursivemutex | ( | ) | [inline] |
| framexmit::recursivemutex::recursivemutex | ( | const recursivemutex & | rmux | ) | [inline] |
| recursivemutex& framexmit::recursivemutex::operator= | ( | const recursivemutex & | rm | ) | [inline] |
Overrides the default assignment behavior. Does nothing. brief Assignment operator.
| rm | recursivemutex copy argument |
| virtual void framexmit::recursivemutex::lock | ( | ) | [virtual] |
Locks the mutex. If the mutex is alreday taken it checks if the current thread is the same as the one which took the mutex originally. If no, it waits until the mutex becomes free. If yes, it increases the reference count and returns. brief Mutex lock function.
Reimplemented from framexmit::mutex.
| virtual void framexmit::recursivemutex::unlock | ( | ) | [virtual] |
Unlocks the mutex. The mutex becomes free. brief Mutex unlock function.
Reimplemented from framexmit::mutex.
| virtual bool framexmit::recursivemutex::trylock | ( | locktype | lck = rdlock |
) | [virtual] |
Trys to lock the mutex. If the mutex is alreday taken it checks if current thread is the same as the one which locked the mutex originally. If no, it returns false. If yes, it increases the reference count and returns true.
brief Mutex trylock function.
| lck | writeaccess ignored |
Reimplemented from framexmit::mutex.
1.5.4