Explore the intricacies of implementing a lock-free atomic shared_ptr in this conference talk from NDC TechTown 2022. Delve into the motivation behind std::atomic introduced in C++20 and understand why existing implementations fall short for low-latency and real-time applications. Examine the inner workings of std::shared_ptr, trace the history of its atomic counterpart, and analyze various implementation strategies. Discover a novel, portable implementation of a lock-free atomic shared_ptr suitable for multiple platforms. Gain valuable insights into advanced C++ programming techniques and learn how to optimize thread-safe smart pointers for high-performance scenarios.
Overview
Syllabus
A lock-free atomic shared_ptr - Timur Doumler - NDC TechTown 2022
Taught by
NDC Conferences