PREEMPTED
case PREEMPTED:
thread->state = PREEMPTED;
thread->state = PREEMPTED;
AddState(thread, time, PREEMPTED, NULL);
case PREEMPTED:
} else if (state == PREEMPTED) {
state = PREEMPTED;
} else if (state == READY || state == PREEMPTED) {
} else if (state == PREEMPTED) {
case PREEMPTED:
thread->state = PREEMPTED;
} else if (thread->state == READY || thread->state == PREEMPTED) {
} else if (thread->state == PREEMPTED) {
thread->state = PREEMPTED;
} else if (state == PREEMPTED) {
state = PREEMPTED;
} else if (thread->state == PREEMPTED) {
thread->state = PREEMPTED;
thread->state = PREEMPTED;
} else if (thread->state == READY || thread->state == PREEMPTED) {