#include <MutexLock.h>
Public Member Functions | |
MutexLock (Mutex &mutex, bool init_locked=true) | |
MutexLock (const MutexLock &ref) | |
~MutexLock () | |
void | lock () |
void | unlock () |
bool | trylock () |
bool | locked () |
Private Attributes | |
Mutex * | m_mutex |
bool | m_locked |
Definition at line 28 of file MutexLock.h.
zypp::thread::MutexLock::MutexLock | ( | Mutex & | mutex, | |
bool | init_locked = true | |||
) | [inline, explicit] |
zypp::thread::MutexLock::MutexLock | ( | const MutexLock & | ref | ) | [inline] |
zypp::thread::MutexLock::~MutexLock | ( | ) | [inline] |
void zypp::thread::MutexLock::lock | ( | ) | [inline] |
Definition at line 59 of file MutexLock.h.
References zypp::thread::Mutex::lock(), m_locked, and m_mutex.
Referenced by MutexLock().
void zypp::thread::MutexLock::unlock | ( | ) | [inline] |
Definition at line 66 of file MutexLock.h.
References m_locked, m_mutex, and zypp::thread::Mutex::unlock().
Referenced by ~MutexLock().
bool zypp::thread::MutexLock::trylock | ( | ) | [inline] |
Definition at line 73 of file MutexLock.h.
References m_locked, m_mutex, and zypp::thread::Mutex::trylock().
bool zypp::thread::MutexLock::locked | ( | ) | [inline] |
Mutex* zypp::thread::MutexLock::m_mutex [private] |
bool zypp::thread::MutexLock::m_locked [mutable, private] |
Definition at line 87 of file MutexLock.h.
Referenced by lock(), locked(), MutexLock(), trylock(), unlock(), and ~MutexLock().