29 #include <boost/thread/tss.hpp> 39 if (g_scheduler.get() ==
nullptr) {
47 schedule(time::nanoseconds after,
const EventCallback& event)
74 : m_event(other.m_event)
82 if (m_event != event) {
~ScopedEventId()
cancels the event
void cancel(const EventId &eventId)
cancel a scheduled event
cancels an event automatically upon destruction
Scheduler & getGlobalScheduler()
void release()
releases the event so that it won't be disconnected when this ScopedEventId is destructed ...
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
ScopedEventId & operator=(const EventId &event)
assigns an event
void resetGlobalScheduler()
static boost::thread_specific_ptr< Scheduler > g_scheduler
EventId schedule(time::nanoseconds after, const EventCallback &event)
schedule an event
void cancel()
cancels the event manually
boost::asio::io_service & getGlobalIoService()