leveldb
Public Member Functions | Private Attributes | List of all members
leveldb::anonymous_namespace{env_posix.cc}::PosixLockTable Class Reference

Public Member Functions

bool Insert (const std::string &fname)
 
void Remove (const std::string &fname)
 

Private Attributes

port::Mutex mu_
 
std::set< std::string > locked_files_
 

Detailed Description

Definition at line 276 of file env_posix.cc.

Member Function Documentation

§ Insert()

bool leveldb::anonymous_namespace{env_posix.cc}::PosixLockTable::Insert ( const std::string &  fname)
inline

Definition at line 281 of file env_posix.cc.

281  {
282  MutexLock l(&mu_);
283  return locked_files_.insert(fname).second;
284  }

§ Remove()

void leveldb::anonymous_namespace{env_posix.cc}::PosixLockTable::Remove ( const std::string &  fname)
inline

Definition at line 285 of file env_posix.cc.

285  {
286  MutexLock l(&mu_);
287  locked_files_.erase(fname);
288  }

Member Data Documentation

§ locked_files_

std::set<std::string> leveldb::anonymous_namespace{env_posix.cc}::PosixLockTable::locked_files_
private

Definition at line 279 of file env_posix.cc.

§ mu_

port::Mutex leveldb::anonymous_namespace{env_posix.cc}::PosixLockTable::mu_
private

Definition at line 278 of file env_posix.cc.


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