Lines Matching refs:state
27 // add a scheduling state snapshot every x events
367 // create and init the state
739 ExtendedThreadSchedulingState* state
741 if (!state->AllocateEventArray())
806 ExtendedThreadSchedulingState* state
808 thread->SetEvents(state->Events(), state->CountEvents());
809 state->DetachEvents();
820 ExtendedThreadSchedulingState* state
824 if (!state->PrepareThreadIORequests(requests, requestCount))
945 if (thread->state == READY) {
948 } else if (thread->state == PREEMPTED) {
953 if (thread->state == STILL_RUNNING) {
955 thread->state = RUNNING;
958 if (thread->state != RUNNING) {
960 thread->state = RUNNING;
979 if (thread->state == STILL_RUNNING) {
987 thread->state = PREEMPTED;
988 } else if (thread->state == RUNNING) {
1017 thread->state = WAITING;
1018 } else if (thread->state == UNKNOWN) {
1023 thread->state = WAITING;
1026 thread->state = PREEMPTED;
1047 if (thread->state == RUNNING || thread->state == STILL_RUNNING) {
1050 thread->state = STILL_RUNNING;
1058 } else if (thread->state != UNKNOWN)
1062 thread->state = READY;
1088 if (thread->state == RUNNING) {
1093 } else if (thread->state == READY || thread->state == PREEMPTED) {
1100 thread->state = WAITING;
1149 // TODO: Add state for unknown scheduler, as we do for threads.
1270 ExtendedThreadSchedulingState* state = _AddThread(event);
1271 return state;