Back to Browse

std::jthread::request_stop | jthread request_stop

1.9K views
Jan 24, 2024
6:54

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 https://www.youtube.com/channel/UCs6sf4iRhhE875T1QjG3wPQ/join https://www.patreon.com/cppnuts #cppprogramming #multithreading #jthread

Download

1 formats

Video Formats

360pmp48.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

std::jthread::request_stop | jthread request_stop | NatokHD