Lines Matching refs:TH_RUN
895 if (!(thread->state & TH_RUN)) {
896 thread->state |= TH_RUN;
1331 while (thread->state & TH_RUN) {
1381 if ((thread->state & (TH_RUN|TH_WAIT|TH_SUSP)) == TH_SUSP) {
1440 * on CPU, then TH_RUN is set, so we're not waiting in any case
1441 * where the original, pure "TH_RUN" check would have let us
1445 (until_not_runnable && (thread->state & TH_RUN))) {
1448 assert(thread->state & TH_RUN);
1663 if ( ((thread->state & ~TH_SUSP) == TH_RUN) &&
2437 thread->state &= ~TH_RUN;
2548 if (__improbable(kdebug_thread_block && kdebug_enable && self->state != TH_RUN)) {
3750 if (thread->state & TH_RUN) {
4233 thread->state = (TH_RUN | TH_IDLE);
4562 return ((thread->state & (TH_RUN|TH_WAIT)) == TH_RUN);