Thread *wait, *join;
wait = get_thread(curr->get_tid());
join = (Thread *)curr->get_location();
if (!join->is_complete())
scheduler->wait(wait, join);
Thread *wait, *join;
wait = get_thread(curr->get_tid());
join = (Thread *)curr->get_location();
if (!join->is_complete())
scheduler->wait(wait, join);