NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::scheduler Namespace Reference

Classes

class  EventId
 Opaque handle for a scheduled event. More...
 
class  ScopedEventId
 Cancels an event automatically upon destruction. More...
 

Functions

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

Variables

static boost::thread_specific_ptr< Scheduler > g_scheduler
 

Function Documentation

◆ getGlobalScheduler()

Scheduler & nfd::scheduler::getGlobalScheduler ( )

Definition at line 37 of file scheduler.cpp.

References g_scheduler.

Referenced by cancel(), ns3::ndn::L3Protocol::DoDispose(), and schedule().

◆ schedule()

◆ cancel()

◆ resetGlobalScheduler()

void nfd::scheduler::resetGlobalScheduler ( )

Definition at line 60 of file scheduler.cpp.

References g_scheduler.

Variable Documentation

◆ g_scheduler

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

Definition at line 34 of file scheduler.cpp.

Referenced by getGlobalScheduler(), and resetGlobalScheduler().