Using condition variable any as waiter