TYPE_WAITING
if (sample->type == TYPE_WAITING)
p->current->state = TYPE_WAITING;
prev_p->current->state = TYPE_WAITING;