tandaeg

Results 2 comments of tandaeg

I have the same problem. ``` #include #include "SPSCQueue.h" using namespace rigtorp; int main(int argc, char* argv[]) { SPSCQueue q(10000); q.push(1); q.pop(); return 0; } ``` Output: ``` Assertion failed:...

And function `front()` has some bug. ``` RIGTORP_NODISCARD T* front() noexcept { auto const readIdx = readIdx_.load(std::memory_order_relaxed); if (readIdx == writeIdxCache_) { writeIdxCache_ = writeIdx_.load(std::memory_order_acquire); if (writeIdxCache_ == readIdx) {...