Lines Matching refs:thr
73 Thread *thr = Sched_Current();
75 Sched_SetWaiting(thr);
76 TAILQ_INSERT_TAIL(&wchan->chanQueue, thr, chanQueue);
93 Thread *thr;
97 thr = TAILQ_FIRST(&wchan->chanQueue);
98 if (thr != NULL) {
99 TAILQ_REMOVE(&wchan->chanQueue, thr, chanQueue);
100 Sched_SetRunnable(thr);
101 Thread_Release(thr);
118 Thread *thr;
123 TAILQ_FOREACH_SAFE(thr, &wchan->chanQueue, chanQueue, thrTemp) {
124 TAILQ_REMOVE(&wchan->chanQueue, thr, chanQueue);
125 Sched_SetRunnable(thr);
126 Thread_Release(thr);