https://habr.com/ru/articles/920790/
https://en.cppreference.com/w/cpp/thread/condition_variable.html
Начиная с C++20, можно делать:
shouldExit.wait(false);
Комментариев нет:
Отправить комментарий