SPSCQueue
SPSCQueue copied to clipboard
replace (std::memory_order_release ,std::memory_order_acquire) with (std::memory_order_relax)?
readIdx_.store(nextReadIdx, std::memory_order_release);
while ( nextWriteIdx == readIdxCache_ ) {
readIdxCache_ = readIdx_.load(std::memory_order_acquire);
}
replace (std::memory_order_release ,std::memory_order_acquire) with (std::memory_order_relax)?