From 964e229cad1a17f90301839cab6c5addf6ebe1dc Mon Sep 17 00:00:00 2001 From: Odysseas Georgoudis Date: Tue, 31 Oct 2023 16:24:16 +0000 Subject: [PATCH] Update BoundedQueue.h --- quill/include/quill/detail/spsc_queue/BoundedQueue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quill/include/quill/detail/spsc_queue/BoundedQueue.h b/quill/include/quill/detail/spsc_queue/BoundedQueue.h index 8536c9d4..c17284bb 100644 --- a/quill/include/quill/detail/spsc_queue/BoundedQueue.h +++ b/quill/include/quill/detail/spsc_queue/BoundedQueue.h @@ -126,7 +126,7 @@ class BoundedQueueImpl // nothing to read, try to load the writer_pos again _writer_pos_cache = _atomic_writer_pos.load(std::memory_order_acquire); - if (_writer_pos_cache != _reader_pos) + if (_writer_pos_cache == _reader_pos) { return nullptr; }