When the timeout is set to be extremely small and the input really large, the program die. Maybe unrelated to `condition variable`, since when I replace `wait_for()` with `this_thread::sleep_for()`, the issue still happens.
When the timeout is set to be extremely small and the input really large, the program die.
Maybe unrelated to
condition variable, since when I replacewait_for()withthis_thread::sleep_for(), the issue still happens.