notify_n() wakes up n waiters, this is more fine grained than notify_one() / notify_all(), and the implementation costs nothing.
notify_n() wakes up n waiters, this is more fine grained than notify_one() / notify_all(), and the implementation costs nothing.