[add] add alarm_cond.cpp, the final version of alarm using conditional varible