Making our lives easier.
std::jthread and cooperative cancellation with stop token
by Hitesh Kumar
From the article:
A std::jthread instance represents an automatically joining and cooperatively cancellable thread. std::jthread has an exception-safe thread termination flow compared to std::thread and can replace it in most situations with little or no code changes...
Add a Comment
Comments are closed.