libzypp 17.31.23
zypp::LogThread Class Reference

Public Member Functions

 ~LogThread ()
 
void setLineWriter (boost::shared_ptr< log::LineWriter > writer)
 
boost::shared_ptr< log::LineWritergetLineWriter ()
 
void stop ()
 
std::thread::id threadId ()
 

Static Public Member Functions

static LogThreadinstance ()
 
static std::string sockPath ()
 

Private Member Functions

 LogThread ()
 
void workerMain ()
 

Private Attributes

std::thread _thread
 
zyppng::Wakeup _stopSignal
 
SpinLock _lineWriterLock
 
boost::shared_ptr< log::LineWriter_lineWriter { nullptr }
 

Detailed Description

Definition at line 82 of file LogControl.cc.

Constructor & Destructor Documentation

◆ ~LogThread()

zypp::LogThread::~LogThread ( )
inline

Definition at line 87 of file LogControl.cc.

◆ LogThread()

zypp::LogThread::LogThread ( )
inlineprivate

Definition at line 124 of file LogControl.cc.

Member Function Documentation

◆ instance()

static LogThread & zypp::LogThread::instance ( )
inlinestatic

Definition at line 91 of file LogControl.cc.

◆ setLineWriter()

void zypp::LogThread::setLineWriter ( boost::shared_ptr< log::LineWriter writer)
inline

Definition at line 96 of file LogControl.cc.

◆ getLineWriter()

boost::shared_ptr< log::LineWriter > zypp::LogThread::getLineWriter ( )
inline

Definition at line 101 of file LogControl.cc.

◆ stop()

void zypp::LogThread::stop ( )
inline

Definition at line 107 of file LogControl.cc.

◆ threadId()

std::thread::id zypp::LogThread::threadId ( )
inline

Definition at line 113 of file LogControl.cc.

◆ sockPath()

static std::string zypp::LogThread::sockPath ( )
inlinestatic

Definition at line 117 of file LogControl.cc.

◆ workerMain()

void zypp::LogThread::workerMain ( )
inlineprivate

Definition at line 133 of file LogControl.cc.

Member Data Documentation

◆ _thread

std::thread zypp::LogThread::_thread
private

Definition at line 204 of file LogControl.cc.

◆ _stopSignal

zyppng::Wakeup zypp::LogThread::_stopSignal
private

Definition at line 205 of file LogControl.cc.

◆ _lineWriterLock

SpinLock zypp::LogThread::_lineWriterLock
private

Definition at line 210 of file LogControl.cc.

◆ _lineWriter

boost::shared_ptr<log::LineWriter> zypp::LogThread::_lineWriter { nullptr }
private

Definition at line 212 of file LogControl.cc.


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