Skip to content

Commit

Permalink
Update BoundedQueue.h
Browse files Browse the repository at this point in the history
  • Loading branch information
odygrd authored Oct 31, 2023
1 parent 6da617c commit 964e229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quill/include/quill/detail/spsc_queue/BoundedQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 964e229

Please sign in to comment.