Тёмный

std::jthread::request_stop | jthread request_stop 

CppNuts
Подписаться 77 тыс.
Просмотров 626
50% 1

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

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@DinoTheStar3610
@DinoTheStar3610 25 дней назад
perfectly explained !! Thanks for your video 😀
@CppNuts
@CppNuts 2 дня назад
Glad it was helpful!
@ParvezKhanPK
@ParvezKhanPK 7 месяцев назад
yaar........ nahi nahi.. hindi nahi bolna hai lol good one
@CppNuts
@CppNuts 7 месяцев назад
😀😀
@nescodey
@nescodey 6 месяцев назад
I had to comment at this moment. Thanks for the content!