ossp-pkg/pth/pth_sched.c 1.86 -> 1.87
--- pth_sched.c 2002/11/08 16:17:47 1.86
+++ pth_sched.c 2002/11/09 16:07:52 1.87
@@ -123,9 +123,9 @@
* Update the average scheduler load.
*
* This is called on every context switch, but we have to adjust the
- * average load value every second, only. When we're called more than
+ * average load value every second, only. If we're called more than
* once per second we handle this by just calculating anything once
- * and then do NOPs until the next ticks is over. When the scheduler
+ * and then do NOPs until the next ticks is over. If the scheduler
* waited for more than once second (or a thread CPU burst lasted for
* more than once second) we simulate the missing calculations. That's
* no problem because we can assume that the number of ready threads
@@ -320,7 +320,7 @@
}
/*
- * When previous thread is now marked as dead, kick it out
+ * If previous thread is now marked as dead, kick it out
*/
if (pth_current->state == PTH_STATE_DEAD) {
pth_debug2("pth_scheduler: marking thread \"%s\" as dead", pth_current->name);
@@ -332,7 +332,7 @@
}
/*
- * When thread wants to wait for an event
+ * If thread wants to wait for an event
* move it to waiting queue now
*/
if (pth_current != NULL && pth_current->state == PTH_STATE_WAITING) {
|
|