CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
anonymous_namespace{}::LogBuffer Class Reference
Inheritance diagram for anonymous_namespace{}::LogBuffer:
Collaboration diagram for anonymous_namespace{}::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

Constructor & Destructor Documentation

anonymous_namespace{}::LogBuffer::LogBuffer ( )

Definition at line 101 of file

Here is the call graph for this function:

anonymous_namespace{}::LogBuffer::~LogBuffer ( )

Definition at line 106 of file

Member Function Documentation

void anonymous_namespace{}::LogBuffer::Append ( const LogBufferEntry entry)

Definition at line 110 of file

Referenced by vLogCvmfs().

Here is the caller graph for this function:

void anonymous_namespace{}::LogBuffer::Clear ( )

Definition at line 131 of file

Referenced by ClearLogBuffer().

Here is the caller graph for this function:

std::vector<LogBufferEntry> anonymous_namespace{}::LogBuffer::GetBuffer ( )

Definition at line 120 of file

Referenced by GetLogBuffer().

Here is the caller graph for this function:

Member Data Documentation

std::vector<LogBufferEntry> anonymous_namespace{}::LogBuffer::buffer_

Definition at line 141 of file

const unsigned anonymous_namespace{}::LogBuffer::kBufferSize = 10

Definition at line 138 of file

pthread_mutex_t anonymous_namespace{}::LogBuffer::lock_

Definition at line 139 of file

int anonymous_namespace{}::LogBuffer::next_id_

Definition at line 140 of file

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