std::jthread - I Told You Concurrency Is Tricky - Nico Josuttis [ ACCU 2021 ]

preview_player
Показать описание
#Programming #Cpp #AccuConf
ACCU Twitter: @ACCUConf

------
With C++20 we will have a new basic thread class, std::jthread.
It will fix a few flaws of std::thread, which was not designed as an easy to use RAII type and lacks the ability to support stopping a running thread.
Sounds like we only have to implement a better destructor and add a parameter to signal cancellation.
But especially with concurrency the devil is in the details.
This is not just a talk about jthread. It is a talk about how implementing even pretty simply concurrency requirements can become a tricky task with many many traps.

------
Nicolai Josuttis

------

Future Conferences:
ACCU 2022 Spring Conference, Bristol (UK), Marriott City Centre:
2022-04-05 to 2022-04-09.
-------------------------
Рекомендации по теме
Комментарии
Автор

great presentation! Enthralling story-telling. I think Nico's next book should have the title "I Told You Concurrency Is Tricky" - straight to the top of the NY Times Bestseller List! (Alternatively, "I Told You Concurrency Is Freaky")

treyquattro
Автор

33:35 this is powerful...
Does this also mean that future programs should always use std::jthread regardless if such a bug may or may not occur?

FreeDomSy-nkue
Автор

Mind-blowing. But very useful! Thanks.

MaceUA