StackOverflow Questions for Tag: stdatomic

Julian Stecklina
Julian Stecklina

Reputation: 1281

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

Score: 22

Views: 686

Answers: 2

Read More
albert
albert

Reputation: 507

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

Score: 5

Views: 145

Answers: 2

Read More
Fosky etm
Fosky etm

Reputation: 63

Is it necessary to call load() before compare_exchange_strong()?

Score: 5

Views: 106

Answers: 2

Read More
untitled
untitled

Reputation: 429

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

Score: 1

Views: 43

Answers: 1

Read More
Ignorant
Ignorant

Reputation: 2681

What is the difference between sequential consistency and acquire/release semantics?

Score: 2

Views: 960

Answers: 2

Read More
yupe
yupe

Reputation: 127

atomic_compare_exchange_weak/strong uncontrolled behavior

Score: 0

Views: 28

Answers: 0

Read More
kingmeng
kingmeng

Reputation: 73

C++ Atomic compare_exchange_weak succeeds the second time, even though I haven't changed expected?

Score: 2

Views: 1087

Answers: 1

Read More
Hans Müller
Hans Müller

Reputation: 9

Why is there no atomic::try_load_for and try_store_for, similar to timed_mutex in C++?

Score: 0

Views: 73

Answers: 1

Read More
Netch
Netch

Reputation: 4582

Why is acquire semantics only for reads, not writes? How can an LL/SC acquire CAS take a lock without the store reordering with the critical section?

Score: 4

Views: 561

Answers: 3

Read More
Nate Eldredge
Nate Eldredge

Reputation: 58663

For purposes of ordering, is atomic read-modify-write one operation or two?

Score: 16

Views: 1554

Answers: 2

Read More
kan
kan

Reputation: 28981

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

Score: 9

Views: 947

Answers: 1

Read More
PeteC
PeteC

Reputation: 1067

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

Score: 65

Views: 6648

Answers: 9

Read More
DDG
DDG

Reputation: 169

busy waiting with atomic<bool>

Score: 1

Views: 292

Answers: 1

Read More
Leandros
Leandros

Reputation: 16825

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

Score: 8

Views: 2943

Answers: 1

Read More

Two instances of the same struct with same field values in are not bitwise-equal

Score: 2

Views: 122

Answers: 1

Read More
Eric Z
Eric Z

Reputation: 14535

Understanding std::atomic::compare_exchange_weak() in C++11

Score: 118

Views: 46591

Answers: 6

Read More
Afshin
Afshin

Reputation: 9173

Comparing 2 method of C++ ref-counting

Score: 5

Views: 182

Answers: 2

Read More
Osama Ahmad
Osama Ahmad

Reputation: 2096

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

Score: 3

Views: 197

Answers: 1

Read More
meisel
meisel

Reputation: 2459

Why would my C++ stdlib's shared_ptr use acq_rel ordering when decrementing the atomic ref count?

Score: 5

Views: 149

Answers: 1

Read More
Shane
Shane

Reputation: 23

C++ Multi-threading: Visible side-effects of non-atomic variables

Score: 2

Views: 646

Answers: 2

Read More
PreviousPage 2Next