1
0
forked from Alepha/Alepha

Unify would block names.

This commit is contained in:
2024-01-04 01:06:03 -05:00
parent 005b5f8730
commit 45f48df5a9

View File

@ -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();