mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 20:59:47 +01:00
Do not pass a message to the check_write method
The check_write method does not use the passed message. The parameter was needed to implement the swap. As the swap is not supported anymore, it is safe to remove this parameter.
This commit is contained in:
@@ -146,7 +146,7 @@ bool zmq::pipe_t::read (msg_t *msg_)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool zmq::pipe_t::check_write (msg_t *msg_)
|
||||
bool zmq::pipe_t::check_write ()
|
||||
{
|
||||
if (unlikely (!out_active || state != active))
|
||||
return false;
|
||||
@@ -163,7 +163,7 @@ bool zmq::pipe_t::check_write (msg_t *msg_)
|
||||
|
||||
bool zmq::pipe_t::write (msg_t *msg_)
|
||||
{
|
||||
if (unlikely (!check_write (msg_)))
|
||||
if (unlikely (!check_write ()))
|
||||
return false;
|
||||
|
||||
bool more = msg_->flags () & msg_t::more ? true : false;
|
||||
|
||||
Reference in New Issue
Block a user