It's better to use std::memory_order_seq_cst in pop() and steal() because we rely on ordering of access to mTop and mBottom members.
8.3 KiB
8.3 KiB
It's better to use std::memory_order_seq_cst in pop() and steal() because we rely on ordering of access to mTop and mBottom members.