rem: if(t != NULL && t->state == THREAD_STATE_SUSPENDED) { t->state = THREAD_STATE_READY; t->next_state = THREAD_STATE_READY;
add: if(t != NULL && t->state == B_THREAD_SUSPENDED) { t->state = B_THREAD_READY; t->next_state = B_THREAD_READY;
context: int thread_resume_thread(thread_id id){	int state;	struct thread *t;	int retval;	state = disable_interrupts();	GRAB_THREAD_LOCK();	t = thread_get_thread_struct_locked(id);	if(t != NULL && t->state == THREAD_STATE_SUSPENDED) {		t->state = THREAD_STATE_READY;		t->next_state = THREAD_STATE_READY;		thread_enqueue_run_q(t);		retval = B_NO_ERROR;	} else {		retval = ERR_INVALID_HANDLE;	}	RELEASE_THREAD_LOCK();	restore_interrupts(state);	return retval;}