Skip to content

Commit 572a490

Browse files
committed
add a shrink method to UnboundedSPSCQueue.h
1 parent 1d9ddf1 commit 572a490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/quill/core/UnboundedSPSCQueue.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class UnboundedSPSCQueue
215215
{
216216
if (capacity > (_producer->bounded_queue.capacity() >> 1))
217217
{
218-
// We should only shrink if the new capacity is strictly less than previous_power_of_2
218+
// We should only shrink if the new capacity is less or at least equal to the previous_power_of_2
219219
return;
220220
}
221221

0 commit comments

Comments
 (0)