SPSCQueue icon indicating copy to clipboard operation
SPSCQueue copied to clipboard

replace (std::memory_order_release ,std::memory_order_acquire) with (std::memory_order_relax)?

Open lglgdouble opened this issue 3 years ago • 0 comments

  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)?

lglgdouble avatar Mar 23 '22 08:03 lglgdouble