change pthread cond