Lines Matching refs:state
85 ScheduleState state = UNKNOWN;
87 // get the first event and guess the initial state
105 state = READY;
115 state = STILL_RUNNING;
117 state = RUNNING;
129 state = WAITING;
139 state = READY;
164 if (state == READY) {
167 } else if (state == PREEMPTED) {
171 } else if (state == STILL_RUNNING) {
181 state = RUNNING;
184 if (state == STILL_RUNNING) {
186 state = PREEMPTED;
187 } else if (state == RUNNING) {
190 state = WAITING;
194 // can't guess the new thread state.
210 if (state == RUNNING || state == STILL_RUNNING) {
214 state = STILL_RUNNING;
216 } else if (state == READY || state == PREEMPTED) {
219 timeType = state == READY
223 state = READY;
240 if (state == RUNNING) {
242 state = READY;
244 } else if (state == READY) {
247 } else if (state == PREEMPTED) {
251 state = READY;
259 switch (state) {