obj_wait
if (obj_wait(cv->prewait_sema, deadline) != WAIT_OBJECT_0) {
rc = obj_wait(cv->sema, deadline);