CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
anonymous_namespace{logging.cc}::LogBuffer Class Reference
Inheritance diagram for anonymous_namespace{logging.cc}::LogBuffer:
Collaboration diagram for anonymous_namespace{logging.cc}::LogBuffer:

Public Member Functions

 LogBuffer ()
 
 ~LogBuffer ()
 
void Append (const LogBufferEntry &entry)
 
std::vector< LogBufferEntryGetBuffer ()
 
void Clear ()
 

Private Attributes

pthread_mutex_t lock_
 
int next_id_
 
std::vector< LogBufferEntrybuffer_
 

Static Private Attributes

static const unsigned kBufferSize = 10
 

Additional Inherited Members

- Private Member Functions inherited from SingleCopy
 SingleCopy ()
 

Detailed Description

Circular buffer of the last $n$ calls to LogCvmfs(). Thread-safe class.

Definition at line 99 of file logging.cc.

Constructor & Destructor Documentation

anonymous_namespace{logging.cc}::LogBuffer::LogBuffer ( )
inline

Definition at line 101 of file logging.cc.

Here is the call graph for this function:

anonymous_namespace{logging.cc}::LogBuffer::~LogBuffer ( )
inline

Definition at line 106 of file logging.cc.

Member Function Documentation

void anonymous_namespace{logging.cc}::LogBuffer::Append ( const LogBufferEntry entry)
inline

Definition at line 110 of file logging.cc.

Referenced by vLogCvmfs().

Here is the caller graph for this function:

void anonymous_namespace{logging.cc}::LogBuffer::Clear ( )
inline

Definition at line 131 of file logging.cc.

Referenced by ClearLogBuffer().

Here is the caller graph for this function:

std::vector<LogBufferEntry> anonymous_namespace{logging.cc}::LogBuffer::GetBuffer ( )
inline

Definition at line 120 of file logging.cc.

Referenced by GetLogBuffer().

Here is the caller graph for this function:

Member Data Documentation

std::vector<LogBufferEntry> anonymous_namespace{logging.cc}::LogBuffer::buffer_
private

Definition at line 141 of file logging.cc.

const unsigned anonymous_namespace{logging.cc}::LogBuffer::kBufferSize = 10
staticprivate

Definition at line 138 of file logging.cc.

pthread_mutex_t anonymous_namespace{logging.cc}::LogBuffer::lock_
private

Definition at line 139 of file logging.cc.

int anonymous_namespace{logging.cc}::LogBuffer::next_id_
private

Definition at line 140 of file logging.cc.


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