Search code examples
Is branching on a std::atomic variable a possible source of bugs?...


multithreadingthread-safetyatomiclock-freestdatomic

Read More
Memory fences: acquire/load and release/store...


c++memory-barrierslock-freestdatomicmemory-model

Read More
Where is the lock for a std::atomic?...


c++c++11x86atomicstdatomic

Read More
C++ atomics acquire/release and RMW - can one acquire load sync with multiple release RMWs?...


c++multithreadingatomicmemory-barriersstdatomic

Read More
Does C++ `memory_order_seq_cst` guarantee load of other variables in the current thread?...


c++multithreadingc++20memory-barriersstdatomic

Read More
Confusing orderings in C++ with memory_order_acq_rel vs memory_order_seq_cst...


c++multithreadingc++20memory-barriersstdatomic

Read More
Is std::atomic<std::map<S, T>> thread-safe for reading and writing?...


c++multithreadingdictionaryatomicstdatomic

Read More
atomically compare and store if not equal...


c++atomicstdatomic

Read More
Visibility of atomic operations with seq-cst fences in C++20...


c++language-lawyermemory-barriersstdatomicmemory-model

Read More
Proper Use of Atomics for an Asynchronous Iterator with Multiple Producers and Consumers in c++20...


c++multithreadingc++20memory-barriersstdatomic

Read More
What exactly is std::atomic?...


c++multithreadingc++11atomicstdatomic

Read More
Does this transitive happens-before use case need sequential consistency or will acquire/release suf...


c++c++11stdatomicmemory-modelhappens-before

Read More
How is modification order of a variable defined in C++?...


c++c++20stdatomicmemory-model

Read More
Why set the stop flag using `memory_order_seq_cst`, if you check it with `memory_order_relaxed`?...


c++concurrencystdatomic

Read More
What is the difference in atomic_load() and assignment?...


cc11rvaluestdatomiclvalue-to-rvalue

Read More
How to let different threads fill an array together?...


c++multithreadingparallel-processingmutexstdatomic

Read More
Memory Model in C++ : sequential consistency and atomicity...


c++multithreadingc++11x86stdatomic

Read More
Are acquire-release semantics transitive across threads?...


c++multithreadingconcurrencymemory-barriersstdatomic

Read More
What does memory_order_consume really do?...


c++cpu-architecturelock-freememory-modelstdatomic

Read More
Can atomic loads be merged in the C++ memory model?...


c++language-lawyercompiler-optimizationmemory-modelstdatomic

Read More
std::atomic<T>::wait - is spurious wakeup possible or not?...


c++c++20stdatomicspurious-wakeup

Read More
Is it necessary to call load() before compare_exchange_strong()?...


c++atomicmemory-barriersstdatomiccompare-and-swap

Read More
Can we not add an acquire barrier when locking if there is no release (unlock) from other threads?...


catomicmemory-barriersstdatomic

Read More
C++ Atomic compare_exchange_weak succeeds the second time, even though I haven't changed expecte...


c++c++11atomicstdatomiccompare-and-swap

Read More
Why is acquire semantics only for reads, not writes? How can an LL/SC acquire CAS take a lock withou...


assemblycpu-architecturestdatomiccompare-and-swapspinlock

Read More
std::atomic<int> memory_order_relaxed VS volatile sig_atomic_t in a multithreaded program...


c++multithreadingvolatilememory-modelstdatomic

Read More
Why don't compilers merge redundant std::atomic writes?...


c++multithreadingc++11compiler-optimizationstdatomic

Read More
busy waiting with atomic<bool>...


c++atomicstdatomic

Read More
Why does a std::atomic store with sequential consistency use XCHG?...


c++assemblyx86lock-freestdatomic

Read More
What would it take to implement a mutex using std::atomic?...


c++multithreadingconcurrencylockingstdatomic

Read More
BackNext