libzypp  10.5.0
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.

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

Definition at line 86 of file MutexLock.h.

bool zypp::thread::MutexLock::m_locked [mutable, private]

Definition at line 87 of file MutexLock.h.


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