Request stop is a function you can call on jthread object, which will tell the threads to stop executing and just return. It is the cleanest way to tell the jthread that now it's the time to pack the bags we are leaving (application is closing)
Let me know if you have any doubts, or i missed something i will cover in the next video.
JOIN ME
/ @cppnuts
/ cppnuts
#cppprogramming #multithreading #jthread
11 сен 2024