More about c++20.
An Improved Thread with C++20
by Rainer Grimm
From the article:
std::jthread stands for joining thread. In addition to std::thread (C++11), std::jthread automatically joins in its destructor and can cooperatively be interrupted. Read in this post to know why std::jthread should be your first choice...
Add a Comment
Comments are closed.