leveldb
Public Member Functions | Private Member Functions | Private Attributes | List of all members
leveldb::MutexLock Class Reference

#include <mutexlock.h>

Public Member Functions

 MutexLock (port::Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu)
 
 ~MutexLock () UNLOCK_FUNCTION()
 

Private Member Functions

 MutexLock (const MutexLock &)
 
void operator= (const MutexLock &)
 

Private Attributes

port::Mutex *const mu_
 

Detailed Description

Definition at line 23 of file mutexlock.h.

Constructor & Destructor Documentation

§ MutexLock() [1/2]

leveldb::MutexLock::MutexLock ( port::Mutex *  mu)
inlineexplicit

Definition at line 25 of file mutexlock.h.

26  : mu_(mu) {
27  this->mu_->Lock();
28  }
port::Mutex *const mu_
Definition: mutexlock.h:32

§ ~MutexLock()

leveldb::MutexLock::~MutexLock ( )
inline

Definition at line 29 of file mutexlock.h.

29 { this->mu_->Unlock(); }
port::Mutex *const mu_
Definition: mutexlock.h:32

§ MutexLock() [2/2]

leveldb::MutexLock::MutexLock ( const MutexLock )
private

Member Function Documentation

§ operator=()

void leveldb::MutexLock::operator= ( const MutexLock )
private

Member Data Documentation

§ mu_

port::Mutex* const leveldb::MutexLock::mu_
private

Definition at line 32 of file mutexlock.h.


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