0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
Hypertable::MutexWithStatistics Class Reference

Mutex that maintains wait threads count. More...

#include <Mutex.h>

Public Member Functions

void lock ()
 
void unlock ()
 
int32_t get_waiting_threads ()
 
void set_statistics_enabled (bool val)
 

Private Attributes

std::atomic_int_fast32_t m_count {0}
 
std::mutex m_mutex
 
bool m_enabled {true}
 

Detailed Description

Mutex that maintains wait threads count.

Definition at line 42 of file Mutex.h.

Member Function Documentation

int32_t Hypertable::MutexWithStatistics::get_waiting_threads ( )
inline

Definition at line 46 of file Mutex.h.

void Hypertable::MutexWithStatistics::lock ( )
inline

Definition at line 44 of file Mutex.h.

void Hypertable::MutexWithStatistics::set_statistics_enabled ( bool  val)
inline

Definition at line 47 of file Mutex.h.

void Hypertable::MutexWithStatistics::unlock ( )
inline

Definition at line 45 of file Mutex.h.

Member Data Documentation

std::atomic_int_fast32_t Hypertable::MutexWithStatistics::m_count {0}
private

Definition at line 49 of file Mutex.h.

bool Hypertable::MutexWithStatistics::m_enabled {true}
private

Definition at line 51 of file Mutex.h.

std::mutex Hypertable::MutexWithStatistics::m_mutex
private

Definition at line 50 of file Mutex.h.


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