|
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
8 namespace SWC {
namespace Comm {
14 : m_ms(cfg_ms), m_call(std::move(call)),
15 m_mutex(), m_timer(ioctx->executor()) {
30 void operator()(
const asio::error_code& ec) {
31 if(ec != asio::error::operation_aborted) {
37 m_timer.async_wait(TimerTask(
this));
SWC_CAN_INLINE void clear() noexcept(_NoExceptDestructor)
std::shared_ptr< IoContext > IoContextPtr
~PeriodicTimer() noexcept
const std::function< void()> Call_t
SWC_CAN_INLINE int32_t get() const noexcept
Core::MutexAtomic m_mutex
The SWC-DB C++ namespace 'SWC'.
const Config::Property::Value_int32_g::Ptr m_ms
void set(const Config::Property::Value_int32_g::Ptr ms, PeriodicTimer::Call_t &&call, const IoContextPtr &ioctx)
~PeriodicTimers() noexcept
asio::high_resolution_timer m_timer
PeriodicTimer(const Config::Property::Value_int32_g::Ptr cfg_ms, Call_t &&call, const IoContextPtr &ioctx)
SWC_CAN_INLINE reference emplace_back(ArgsT &&... args)