ossp-pkg/pth/pth_sched.c 1.84 -> 1.85
--- pth_sched.c 2002/11/05 19:43:06 1.84
+++ pth_sched.c 2002/11/07 15:38:40 1.85
@@ -81,27 +81,27 @@
pth_t t;
/* clear the new queue */
- while ((t = pth_pqueue_delmax(&pth_NQ)) != NULL);
+ while ((t = pth_pqueue_delmax(&pth_NQ)) != NULL)
pth_tcb_free(t);
pth_pqueue_init(&pth_NQ);
/* clear the ready queue */
- while ((t = pth_pqueue_delmax(&pth_RQ)) != NULL);
+ while ((t = pth_pqueue_delmax(&pth_RQ)) != NULL)
pth_tcb_free(t);
pth_pqueue_init(&pth_RQ);
/* clear the waiting queue */
- while ((t = pth_pqueue_delmax(&pth_WQ)) != NULL);
+ while ((t = pth_pqueue_delmax(&pth_WQ)) != NULL)
pth_tcb_free(t);
pth_pqueue_init(&pth_WQ);
/* clear the suspend queue */
- while ((t = pth_pqueue_delmax(&pth_SQ)) != NULL);
+ while ((t = pth_pqueue_delmax(&pth_SQ)) != NULL)
pth_tcb_free(t);
pth_pqueue_init(&pth_SQ);
/* clear the dead queue */
- while ((t = pth_pqueue_delmax(&pth_DQ)) != NULL);
+ while ((t = pth_pqueue_delmax(&pth_DQ)) != NULL)
pth_tcb_free(t);
pth_pqueue_init(&pth_DQ);
return;
|
|