Agora  1.2.0
Agora project
spdlog::details::periodic_worker Class Reference

#include <periodic_worker.h>

Public Member Functions

 periodic_worker (const std::function< void()> &callback_fun, std::chrono::seconds interval)
 
 periodic_worker (const periodic_worker &)=delete
 
periodic_workeroperator= (const periodic_worker &)=delete
 
 ~periodic_worker ()
 

Private Attributes

bool active_
 
std::thread worker_thread_
 
std::mutex mutex_
 
std::condition_variable cv_
 

Constructor & Destructor Documentation

◆ periodic_worker() [1/2]

SPDLOG_INLINE spdlog::details::periodic_worker::periodic_worker ( const std::function< void()> &  callback_fun,
std::chrono::seconds  interval 
)

◆ periodic_worker() [2/2]

spdlog::details::periodic_worker::periodic_worker ( const periodic_worker )
delete

◆ ~periodic_worker()

SPDLOG_INLINE spdlog::details::periodic_worker::~periodic_worker ( )

Member Function Documentation

◆ operator=()

periodic_worker& spdlog::details::periodic_worker::operator= ( const periodic_worker )
delete

Member Data Documentation

◆ active_

bool spdlog::details::periodic_worker::active_
private

◆ cv_

std::condition_variable spdlog::details::periodic_worker::cv_
private

◆ mutex_

std::mutex spdlog::details::periodic_worker::mutex_
private

◆ worker_thread_

std::thread spdlog::details::periodic_worker::worker_thread_
private

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