nfd::scheduler Namespace Reference

Classes

class  ScopedEventId
 cancels an event automatically upon destruction More...
 

Functions

void cancel (const EventId &eventId)
 cancel a scheduled event More...
 
Scheduler & getGlobalScheduler ()
 
void resetGlobalScheduler ()
 
EventId schedule (time::nanoseconds after, const EventCallback &event)
 schedule an event More...
 

Variables

static boost::thread_specific_ptr< Scheduler > g_scheduler
 

Function Documentation

void nfd::scheduler::cancel ( const EventId eventId)

cancel a scheduled event

Definition at line 53 of file scheduler.cpp.

Scheduler& nfd::scheduler::getGlobalScheduler ( )

Definition at line 37 of file scheduler.cpp.

void nfd::scheduler::resetGlobalScheduler ( )

Definition at line 59 of file scheduler.cpp.

EventId nfd::scheduler::schedule ( time::nanoseconds  after,
const EventCallback &  event 
)

schedule an event

Definition at line 47 of file scheduler.cpp.

Variable Documentation

boost::thread_specific_ptr<Scheduler> nfd::scheduler::g_scheduler
static

Definition at line 34 of file scheduler.cpp.