понедельник, 23 июня 2025 г.

exit wait C++ 20

https://habr.com/ru/articles/920790/

https://en.cppreference.com/w/cpp/thread/condition_variable.html

Начиная с C++20, можно делать:

shouldExit.wait(false);

Комментариев нет:

Отправить комментарий