updated thread_set_priority