wait_for_partner
if (wait_for_partner(pipe, &pipe->w_counter))
if (wait_for_partner(pipe, &pipe->r_counter))