documented the idea behind the current implementation of the scheduler

This commit is contained in:
Tobias Brunner
2009-05-15 14:43:15 +02:00
parent e209c4d820
commit 28154e35be
2 changed files with 52 additions and 5 deletions
+3 -2
View File
@@ -164,11 +164,12 @@ static event_t *remove_event(private_scheduler_t *this)
if (timeval_cmp(&top->time, &this->heap[child]->time) <= 0)
{
/* the top event fires before the smaller of the two children, stop */
/* the top event fires before the smaller of the two children,
* stop */
break;
}
/* exchange with the smaller child */
/* swap with the smaller child */
this->heap[position] = this->heap[child];
position = child;
}