#include <ulxr_mutex.h>
Collaboration diagram for ulxr::Mutex::TryLocker:

Public Member Functions | |
| TryLocker (Mutex &mtx) | |
| Create object and request mutex. | |
| ~TryLocker () throw () | |
| Destroys object and releases mutex. | |
| bool | isLocked () |
| Checks if the mutex has been succesfully requested. | |
Private Attributes | |
| Mutex * | mutex |
| bool | locked |
Definition at line 75 of file ulxr_mutex.h.
| ulxr::Mutex::TryLocker::TryLocker | ( | Mutex & | mtx | ) |
Create object and request mutex.
| mtx | mutex to request. |
Definition at line 149 of file ulxr_mutex.cpp.
References locked, mutex, and ulxr::Mutex::tryLock().
| ulxr::Mutex::TryLocker::~TryLocker | ( | ) | throw () |
Destroys object and releases mutex.
Definition at line 156 of file ulxr_mutex.cpp.
References isLocked(), mutex, and ulxr::Mutex::unlock().
| bool ulxr::Mutex::TryLocker::isLocked | ( | ) |
Checks if the mutex has been succesfully requested.
Definition at line 169 of file ulxr_mutex.cpp.
Referenced by ~TryLocker().
Mutex* ulxr::Mutex::TryLocker::mutex [private] |
bool ulxr::Mutex::TryLocker::locked [private] |
1.5.1