Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
ThreadLocalLogContext Struct Reference

Associate a name with each thread for nice logging. More...

Public Member Functions

 ThreadLocalLogContext ()=default
 
void push (std::string const &_name)
 
void pop ()
 
string join (string const &_prior)
 

Public Attributes

boost::thread_specific_ptr< std::vector< std::string > > m_contexts
 

Detailed Description

Associate a name with each thread for nice logging.

Definition at line 118 of file Log.cpp.

Constructor & Destructor Documentation

ThreadLocalLogContext::ThreadLocalLogContext ( )
default

Member Function Documentation

string ThreadLocalLogContext::join ( string const &  _prior)
inline

Definition at line 134 of file Log.cpp.

Here is the caller graph for this function:

void ThreadLocalLogContext::pop ( )
inline

Definition at line 129 of file Log.cpp.

Here is the caller graph for this function:

void ThreadLocalLogContext::push ( std::string const &  _name)
inline

Definition at line 122 of file Log.cpp.

Here is the caller graph for this function:

Member Data Documentation

boost::thread_specific_ptr<std::vector<std::string> > ThreadLocalLogContext::m_contexts

Definition at line 143 of file Log.cpp.


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