filmov
tv
std::jthread - I Told You Concurrency Is Tricky - Nico Josuttis [ ACCU 2021 ]
Показать описание
#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.
-------------------------
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.
-------------------------
std::jthread - I Told You Concurrency Is Tricky - Nico Josuttis [ ACCU 2021 ]
jthread std::jthread in C++ 20 | Introduction to Concurrency in Cpp
C++ std::thread vs std::jthread
C++20 Jthread part 1 : Introduction to Jthreads
std::jthread::request_stop | jthread request_stop
011 - std::jthread The C++20 Thread Launcher, Experiment on alignas
C++ Weekly - Ep 207 - C++20's jthread and stop_token
Does std::endl fix your multithreaded prints? (C++)
Why and How we fixed std::thread by std::jthread - Nicolai Josuttis [ C++ on Sea 2020 ]
jthread In C++20 | Multithreading In C++
An Introduction to Multithreading in C++20 - Anthony Williams - CppCon 2022
Anthony Williams — Concurrency in C++20 and beyond
Concurrency in C++20 and Beyond - Anthony Williams [ ACCU 2021 ]
C++ : segmentation fault using static libraries with std::jthread (g++-10)
C++ Weekly - Ep 320 - Using `inline namespace` To Save Your ABI
C++ RAII vs Rust OBRM - Part 1
An introduction to multithreading in C++20 - Anthony Williams - Meeting C++ 2022
An Introduction to Multithreading in C++20 - Anthony Williams - ACCU 2022
jthread - a new entrant in C++ 20
C++ Standard Views - Nico Josuttis - ACCU 2023
C++ Weekly - Ep 220 - C++20's [[likely]] and [[unlikely]] With Practical use Case
std::cout - Stream-Based I/O part 1 of n - Modern Cpp Series Ep. 191
Learning C++20: jthreads and stop tokens
C++ From Scratch: Threads
Комментарии