[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scheduler..
cf Scheduler::schedule() in ~ns/scheduler.cc.
- Haobo
On Mon, 9 Aug 1999, Rajesh Khetan wrote:
> Hi,
>
> I would appreciate if somebody could explain me, the lines marked in the
> following function:
>
>
>
> void LinkDelay::recv(Packet* p, Handler* h)
> {
> double txt = txtime(p);
> Scheduler& s = Scheduler::instance();
> if (dynamic_) {
> Event* e = (Event*)p;
> e->time_= txt + delay_;
> itq_->enque(p); // for convinience, use a queue to store
> packets in transit
> *** s.schedule(this, p, txt + delay_); ***
> } else {
> *** s.schedule(target_, p, txt + delay_); ***
> }
> *** s.schedule(h, &intr_, txt); ***
> }
>
>
> Thank you.
>
> - Rajesh.
>
> --------------------------------------------------------------------------
> Rajesh Khetan
> University of Southern California
> 1194 W 30th Street, Apt.# 1
> LA, CA - 90007 Tel : (323) 737 3035
> --------------------------------------------------------------------------
>
>