From 45f48df5a918176a59f3fa8a9d506320d66394b4 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Thu, 4 Jan 2024 01:06:03 -0500 Subject: [PATCH] Unify would block names. --- Atomic/Dropbox.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Atomic/Dropbox.h b/Atomic/Dropbox.h index a93babd..fb0ac73 100644 --- a/Atomic/Dropbox.h +++ b/Atomic/Dropbox.h @@ -130,13 +130,13 @@ namespace Alepha::Hydrogen::Atomic ::detail:: Dropbox_m return std::move( rv ); } - bool wouldBlock() { return weight > boxLimit; } + bool pushWouldBlock() { return weight > boxLimit; } void push( Item item ) { - if( wouldBlock() ) [[unlikely]] sendoff(); + if( pushWouldBlock() ) [[unlikely]] sendoff(); assertion( weight <= boxLimit ); auto &preparing= drops.producer.acquireBox();