mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-09 07:16:04 +00:00
Problem: check_hwm() has different semantic of 'full'
This commit is contained in:
parent
a8605f576e
commit
e4c06bef18
@ -533,6 +533,6 @@ void zmq::pipe_t::set_hwms_boost(int inhwmboost_, int outhwmboost_)
|
|||||||
|
|
||||||
bool zmq::pipe_t::check_hwm () const
|
bool zmq::pipe_t::check_hwm () const
|
||||||
{
|
{
|
||||||
bool full = hwm > 0 && msgs_written - peers_msgs_read >= uint64_t (hwm - 1);
|
bool full = hwm > 0 && msgs_written - peers_msgs_read >= uint64_t (hwm);
|
||||||
return( !full );
|
return( !full );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user