|
|
@ -235,7 +235,7 @@ class DeadlineOps |
|
|
|
}; |
|
|
|
|
|
|
|
public: |
|
|
|
DeadlineOps(ba::io_service& _io, unsigned _reapIntervalMs = 100): m_io(_io), m_reapIntervalMs(_reapIntervalMs), m_stopped({false}) { reap(); } |
|
|
|
DeadlineOps(ba::io_service& _io, unsigned _reapIntervalMs = 100): m_io(_io), m_reapIntervalMs(_reapIntervalMs), m_stopped(false) { reap(); } |
|
|
|
~DeadlineOps() { stop(); } |
|
|
|
|
|
|
|
void schedule(unsigned _msInFuture, std::function<void(boost::system::error_code const&)> const& _f) { if (m_stopped) return; DEV_GUARDED(x_timers) m_timers.emplace_back(m_io, _msInFuture, _f); } |
|
|
|