ns-allinone-2.35/ns-2.35/common/timer-handler.cc
void
TimerHandler::sched(double delay)
{
	if (status_ != TIMER_IDLE) {
		fprintf(stderr,"Couldn't schedule timer");
		abort();
	}
	_sched(delay);
	status_ = TIMER_PENDING;
}
/* sched checks the state of the timer before shceduling the
 * event. It the timer is already set, abort is called.
 * This is different than the OTcl timers in tcl/ex/timer.tcl,
 * where sched is the same as reshced, and no timer state is kept.
 */
sched checks the state of the timer before shceduling the
event. It the timer is already set, abort is called.
This is different than the OTcl timers in tcl/ex/timer.tcl,
where sched is the same as reshced, and no timer state is kept.
sched checks the state of the timer before shceduling the event . It the timer is already set abort is called . This is different than the OTcl timers in tcl / ex / timer . tcl where sched is the same as reshced and no timer state is kept .
void
TimerHandler::sched(double delay)
{
	if (status_ != TIMER_IDLE) {
		fprintf(stderr,"Couldn't schedule timer");
		abort();
	}
	_sched(delay);
	status_ = TIMER_PENDING;
}
void TimerHandler :: sched ( double delay ) { if ( status_ != TIMER_IDLE ) { fprintf ( stderr , " " ) ; abort ( ) ; } _sched ( delay ) ; status_ = TIMER_PENDING ; }
sched checks the state of the timer before shceduling the
 event.
sched checks the state of the timer before shceduling the event .