Killing C++11 threads

Hi all, i have been trying to find out how to terminate a c++11 thread from executing. Any kind of help would be highly appreciated. thank you.
There are no means provided in C++11 to forcibly terminate a thread.

It does provide a way to obtain the thread's native handle which could be used with an OS-specific API, but there are no guarantees that it would work well with C++ (few thread APIs do).

Just check the termination conditions in your thread functions.
Last edited on
Topic archived. No new replies allowed.