Condition variable toy example