A Lock-Free Atomic Shared Pointer in Modern Cpp - Timur Doumler - CppCon 2022
---
A Lock-Free Atomic Shared Pointer in Modern Cpp - Timur Doumler - CppCon 2022
std::shared_ptr is a standard smart pointer utility widely used in modern C . A commonly overlooked property of std::shared_ptr is that while its control block is thread-safe, the shared_ptr itself isn’t. To fix this, C 20 introduced std::atomic<std::shared_ptr>. However, existing implementations are typically not lock-free, rendering std::atomic<std::shared_ptr> useless for low-latency and real-time applications.
What would it take to implement a lock-free atomic shared_ptr? In this talk, we first discuss the motivation and use case, review how std::shared_ptr works and the history of std::atomic<std::shared_ptr>. We then look at existing implementations and different implementation strategies. Finally, we present a new implementation of a lock-free atomic shared_ptr which is portable to multiple p
1 view
591
136
3 hours ago 00:09:43 1
17 Things Deadlock Pros DO That You DON’T
4 hours ago 01:55:26 1
Deep Emotions 2024 | Deep House • Nu Disco • Chill House Mix #5
5 hours ago 00:00:39 1
Bad Boy | Short Comic Animation #453
12 hours ago 00:03:01 1
ByBit Crypto Using Tutorial - ByBit Charge Free Payment
13 hours ago 00:00:30 119
Apex Legends: Shockwave Battle Pass Split 2
14 hours ago 00:05:15 1
The HU - Wolf Totem feat. Jacoby Shaddix of Papa Roach (Official Music Video)
15 hours ago 00:04:05 1
Can’t Get You out of My Head (Cover) - AnnenMayKantereit x Parcels
16 hours ago 00:01:12 1
This will change your life...
20 hours ago 00:01:30 1
Legend of the Galactic Heroes Opening 3
23 hours ago 00:02:32 1
HEAVEN 2 HELL - (A Hazbin Hotel Inspired Song) by Black Gryph0n & Baasik Feat. Elsie Lovelock
1 day ago 00:31:45 1
They Are Coming, The Rise Of Gog and Magog
2 days ago 00:02:06 1
Kill Eva & ENCASSATOR - Psycho Dreams (Sped Up)
2 days ago 00:09:52 1
Man charged with sexual assaulting woman HOURS after being released early under Starmer’s scheme
2 days ago 01:18:29 1
Oh SH*T! It’s starting. US and UK launching MASSIVE military move against Russia | Redacted News
2 days ago 00:03:45 1
September Mourning - Spit You Out (video 2024)
2 days ago 00:01:27 1
MINECRAFT STORY MODE: The Remake - Teaser Trailer
3 days ago 00:03:41 1
Authorized mi account | mi authorized account | your account is unauthorized
3 days ago 00:00:00 1
Ibiza Summer Mix 2024 🍓 Best Of Tropical Deep House Music Chill Out Mix 2024 🍓 Chillout Lounge #222
3 days ago 00:03:07 1
NEW 2025 Audi RSQ8 Quattro | Luxury SUV 640HP Exhaust Sound and review 4k
3 days ago 01:50:55 1
Deep Feelings Mix [2024] - Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #10
3 days ago 00:00:58 3
Fiend Queller Yone | Skin Trailer - League of Legends: Wild Rift
3 days ago 00:31:14 1
ANYONE Can Draw a Stylized Landscape in PROCREATE - Easy Drawing on iPad
4 days ago 00:02:12 1
2hollis - trauma (official video)
4 days ago 01:58:37 1
Deep Feelings Mix [2024] - Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #55