libzypp  13.10.6
zypp::thread::MutexLock Class Reference

#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

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 
)
inlineexplicit

Definition at line 31 of file MutexLock.h.

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

Definition at line 39 of file MutexLock.h.

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

Definition at line 46 of file MutexLock.h.

Member Function Documentation

void zypp::thread::MutexLock::lock ( )
inline

Definition at line 59 of file MutexLock.h.

void zypp::thread::MutexLock::unlock ( )
inline

Definition at line 66 of file MutexLock.h.

bool zypp::thread::MutexLock::trylock ( )
inline

Definition at line 73 of file MutexLock.h.

bool zypp::thread::MutexLock::locked ( )
inline

Definition at line 80 of file MutexLock.h.

Member Data Documentation

Mutex* zypp::thread::MutexLock::m_mutex
private

Definition at line 86 of file MutexLock.h.

bool zypp::thread::MutexLock::m_locked
mutableprivate

Definition at line 87 of file MutexLock.h.


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