forked from Alepha/Alepha
Unify would block names.
This commit is contained in:
@ -130,13 +130,13 @@ namespace Alepha::Hydrogen::Atomic ::detail:: Dropbox_m
|
|||||||
return std::move( rv );
|
return std::move( rv );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wouldBlock() { return weight > boxLimit; }
|
bool pushWouldBlock() { return weight > boxLimit; }
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
push( Item item )
|
push( Item item )
|
||||||
{
|
{
|
||||||
if( wouldBlock() ) [[unlikely]] sendoff();
|
if( pushWouldBlock() ) [[unlikely]] sendoff();
|
||||||
assertion( weight <= boxLimit );
|
assertion( weight <= boxLimit );
|
||||||
|
|
||||||
auto &preparing= drops.producer.acquireBox();
|
auto &preparing= drops.producer.acquireBox();
|
||||||
|
|||||||
Reference in New Issue
Block a user