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 cancelled 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. 
Opaque handle for a scheduled event. 
boost::asio::io_service & getGlobalIoService()