Lines Matching refs:state
67 ScheduleState state;
74 state(UNKNOWN),
648 if (thread->state == READY) {
656 } else if (thread->state == PREEMPTED) {
668 if (thread->state == STILL_RUNNING) {
670 thread->state = RUNNING;
673 if (thread->state != RUNNING) {
675 thread->state = RUNNING;
687 if (thread->state == STILL_RUNNING) {
698 thread->state = PREEMPTED;
699 } else if (thread->state == RUNNING) {
732 thread->state = WAITING;
733 } else if (thread->state == UNKNOWN) {
738 thread->state = WAITING;
741 thread->state = PREEMPTED;
750 if (thread->state == RUNNING || thread->state == STILL_RUNNING) {
753 thread->state = STILL_RUNNING;
761 } else if (thread->state != UNKNOWN)
765 thread->state = READY;
776 if (thread->state == RUNNING) {
784 } else if (thread->state == READY || thread->state == PREEMPTED) {
791 thread->state = WAITING;