DO_DCAS¶
Defined in carb/container/LocklessStack.h
-
DO_DCAS
¶ If 1, we try to do double-compare-and-swap; otherwise we do a single compare-and-swap and encode the sequence by stealing some of the pointer bits. If 1 but we don’t have DCAS (ARM) then we fall back to using std::mutex Note that DCAS requires
-march=skylake
for GCC/x86_64. This is done below with a pragma.