ns-allinone-2.35/ns-2.35/common/scheduler.cc
void
Scheduler::dispatch(Event* p, double t)
{
	if (t < clock_) {
		fprintf(stderr, "ns: scheduler going backwards in time from %f to %f.\n", clock_, t);
		abort();
	}

	clock_ = t;
	p->uid_ = -p->uid_;	// being dispatched
	p->handler_->handle(p);	// dispatch
}
/*
 * dispatch a single simulator event by setting the system
 * virtul clock to the event's timestamp and calling its handler.
 * Note that the event may have side effects of placing other items
 * in the scheduling queue
 */
dispatch a single simulator event by setting the system
virtul clock to the event's timestamp and calling its handler.
Note that the event may have side effects of placing other items
in the scheduling queue
dispatch a single simulator event by setting the system virtul clock to the event ' s timestamp and calling its handler . Note that the event may have side effects of placing other items in the scheduling queue
void
Scheduler::dispatch(Event* p, double t)
{
	if (t < clock_) {
		fprintf(stderr, "ns: scheduler going backwards in time from %f to %f.\n", clock_, t);
		abort();
	}
	clock_ = t;
	p->uid_ = -p->uid_;	
	p->handler_->handle(p);	
}
void Scheduler :: dispatch ( Event * p , double t ) { if ( t < clock_ ) { fprintf ( stderr , " \n " , clock_ , t ) ; abort ( ) ; } clock_ = t ; p -> uid_ = - p -> uid_ ; p -> handler_ -> handle ( p ) ; }
dispatch a single simulator event by setting the system
 virtul clock to the event's timestamp and calling its handler.
dispatch a single simulator event by setting the system virtul clock to the event ' s timestamp and calling its handler .
// being dispatched // dispatch