Полезные материалы по всему, что может быть полезно плюсовику/сишнику.
C++ | std::jthread and cooperative cancellation with stop token C++20’s std::jthread is an exception-safe alternative of std::thread that politely stops and joins the thread automatically in the destructor.
C++20’s std::jthread is an exception-safe alternative of std::thread that politely stops and joins the thread automatically in the destructor.