zypp::thread::MutexLock Class Reference

#include <MutexLock.h>

List of all members.

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

Mutexm_mutex
bool m_locked


Detailed Description

Definition at line 28 of file MutexLock.h.


Constructor & Destructor Documentation

zypp::thread::MutexLock::MutexLock ( Mutex mutex,
bool  init_locked = true 
) [inline, explicit]

Definition at line 31 of file MutexLock.h.

References lock().

zypp::thread::MutexLock::MutexLock ( const MutexLock ref  )  [inline]

Definition at line 39 of file MutexLock.h.

References m_locked.

zypp::thread::MutexLock::~MutexLock (  )  [inline]

Definition at line 46 of file MutexLock.h.

References m_locked, and unlock().


Member Function Documentation

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]

Definition at line 80 of file MutexLock.h.

References m_locked.


Member Data Documentation

Definition at line 86 of file MutexLock.h.

Referenced by lock(), trylock(), and unlock().

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().


The documentation for this class was generated from the following file:

doxygen