Patch for issue LIBZMQ-275. Dealing with VSM in distribution when pipes fail to write.

Signed-off-by: Ben Gray <ben@benjamg.com>
This commit is contained in:
Ben Gray
2011-10-27 13:59:54 +02:00
committed by Martin Sustrik
parent 68ab5f87ed
commit 9e000c8f26
3 changed files with 17 additions and 0 deletions

View File

@@ -237,6 +237,11 @@ bool zmq::msg_t::is_delimiter ()
return u.base.type == type_delimiter;
}
bool zmq::msg_t::is_vsm ()
{
return u.base.type == type_vsm;
}
void zmq::msg_t::add_refs (int refs_)
{
zmq_assert (refs_ >= 0);
@@ -279,3 +284,4 @@ bool zmq::msg_t::rm_refs (int refs_)
return true;
}