You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't understand C11 memory ordering well enough to say what other
memory orderings are correct, and that part of the C11 spec is too dense
for me to follow. And since it doesn't make any difference on x86 --
where a locked cmpxchg is always going to be a full memory barrier -- I
couldn't really test it either.
can we relax
compare_exchange_weak
with different memory orders?I would assume that for push operation we can do
memory_order_release
andmemory_order_relaxed
and for pop:
memory_order_release
andmemory_order_acquire
any thought on that?
The text was updated successfully, but these errors were encountered: