Search code examples
Does std::atomic remain atomic when a struct is allocated with malloc?...


c++stdatomicstdatomic

Read More
C++11 Implementation of Spinlock using header `<atomic>`...


c++multithreadingatomicstdatomicspinlock

Read More
What's the default value for a std::atomic?...


c++c++11initializationatomicstdatomic

Read More
Understanding std::atomic::compare_exchange_weak() in C++11...


c++multithreadingatomicstdatomiccompare-and-swap

Read More
Misbehaving circular ring buffer using std::atomic...


c++stdatomic

Read More
Non-deterministic read values when using std::atomic store/load with std::memory_order_seq_cst...


c++multithreadingsynchronizationstdatomic

Read More
Shared atomic variable is not properly published if it is not modified under mutex...


c++c++11condition-variablestdatomic

Read More
MSVC 14.38.33130: Does std::atomic_ref::is_lock_free have a bug? It returns true for a 1024-byte str...


c++visual-c++visual-studio-2022lock-freestdatomic

Read More
Is it possible to build a mutex from C++20 std::atomic without spinning to avoid use-after-free when...


c++multithreadinglockingc++20stdatomic

Read More
How can you prevent a destructor call from being reordered above an atomic write by the compiler?...


c++language-lawyerc++20stdatomicc++23

Read More
Understanding sequential consistency fence in C++...


c++memory-barriersstdatomic

Read More
Is std::atomic<bool> trivially copyable?...


c++language-lawyerstdatomictrivially-copyable

Read More
Valgrind (Helgrind) is showing data race with atomic...


c++multithreadingvalgrindstdatomic

Read More
Is it thread-safe to use std::atomic<bool> to control access to a data structure cooperatively...


c++thread-safetylockinglock-freestdatomic

Read More
Why don't standard libraries implement std::atomic for structs under 8 bytes in a lock-free mann...


c++c++17atomiclock-freestdatomic

Read More
What are the correct memory orders to use when inserting a node at the beginning of a lock free sing...


c++c++17lock-freememory-barriersstdatomic

Read More
Does atomic read guarantee reading of the latest value?...


c++multithreadingatomicvolatilestdatomic

Read More
How does libcxx std::counting_semaphore implement "Strongly happens before" for release / ...


c++language-lawyerc++20memory-barriersstdatomic

Read More
If `std::atomic_thread_fence(std::memory_order_acquire);` doesn't have an "associated atomi...


c++concurrencyatomicmemory-barriersstdatomic

Read More
Will two atomic writes to different locations in different threads always be seen in the same order ...


c++c++11concurrencymemory-modelstdatomic

Read More
Don't really get the logic of std::atomic::compare_exchange_weak and compare_exchange_strong...


c++multithreadingatomicstdatomiccompare-and-swap

Read More
Is it possible to use non-paired Acquire/Release memory orders?...


c++multithreadingatomiclock-freestdatomic

Read More
How can I implement ABA counter with c++11 CAS?...


c++multithreadinglock-freestdatomicaba

Read More
Cross-platform 128-bit atomic support: std::atomic vs std::atomic_ref on Clang/MSVC (macOS ARM64, Wi...


c++multithreadingclangatomicstdatomic

Read More
Does release-consume order violate sequence-before order?...


c++atomicstdatomicmemory-model

Read More
How to infer whether a global sequence is valid or not with std::memory_order_seq_cst?...


c++multithreadingc++11memory-barriersstdatomic

Read More
How do I initialize an array of std::atomics to zeros?...


c++arraysc++11atomicstdatomic

Read More
How do you use a std::atomic<bool> to ensure mutual exclusion in a code block?...


c++multithreadingc++11concurrencystdatomic

Read More
std::atomic::is_lock_free() shows true but pthread_mutex_lock() called...


c++gccatomicredhatstdatomic

Read More
Is branching on a std::atomic variable a possible source of bugs?...


multithreadingthread-safetyatomiclock-freestdatomic

Read More
BackNext