[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: node name
A quick question. The following is a fragment from scheduler.cc
My question is why
p->uid_ = - p->uid_;
What does it mean?
void ListScheduler::run()
{
/*XXX*/
instance_ = this;
while (queue_ != 0 && !halted_) {
//printf("got here, ");
Event* p = queue_;
queue_ = p->next_;
clock_ = p->time_;
//printf("clock_ %f, before p->uid_:%d,", clock_, p->uid_);
p->uid_ = - p->uid_;
//printf("after p->uid_:%d,", p->uid_);
p->handler_->handle(p);
//printf("queue%d, halted%d\n",queue_, halted_);
}
}
--Shaogang
============================================================================
Email: [email protected] Address: 1285 E.E. Bldg., Box 093
Web: http://yake.ecn.purdue.edu/~shaogang Purdue University
Office: MSEE 292 Phone: (765) 496-1655 W. Lafayette, IN 47907
============================================================================