quill
Public Member Functions | Friends | List of all members
detail::BackendWorker Class Reference

Public Member Functions

 BackendWorker ()
 Constructor.
 
 BackendWorker (BackendWorker const &)=delete
 Deleted.
 
BackendWorkeroperator= (BackendWorker const &)=delete
 
 ~BackendWorker ()
 Destructor.
 
QUILL_NODISCARD bool is_running () const noexcept
 
QUILL_NODISCARD uint64_t time_since_epoch (uint64_t rdtsc_value) const
 Access the rdtsc class from any thread to convert an rdtsc value to wall time.
 
QUILL_NODISCARD uint32_t get_backend_thread_id () const noexcept
 Get the backend worker's thread id. More...
 
QUILL_ATTRIBUTE_COLD void run (BackendOptions const &options)
 Starts the backend worker thread. More...
 
QUILL_ATTRIBUTE_COLD void stop () noexcept
 Stops the backend worker thread.
 
void notify ()
 Wakes up the backend worker thread. More...
 

Friends

class quill::ManualBackendWorker
 

Member Function Documentation

◆ get_backend_thread_id()

QUILL_NODISCARD uint32_t detail::BackendWorker::get_backend_thread_id ( ) const
inlinenoexcept

Get the backend worker's thread id.

Returns
the backend worker's thread id

◆ notify()

void detail::BackendWorker::notify ( )
inline

Wakes up the backend worker thread.

Thread safe to be called from any thread

◆ run()

QUILL_ATTRIBUTE_COLD void detail::BackendWorker::run ( BackendOptions const &  options)
inline

Starts the backend worker thread.

Exceptions
std::runtime_error,std::system_erroron failures

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