From 27e83cc5258e191a7d5977e202046447df7896b9 Mon Sep 17 00:00:00 2001 From: Mikko Koppanen Date: Wed, 15 Dec 2010 20:10:27 +0100 Subject: Fixes assertion on pipe.cpp:237 when swap fills up. Fixes swap::full () functionality Signed-off-by: Mikko Koppanen --- src/pipe.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pipe.hpp') diff --git a/src/pipe.hpp b/src/pipe.hpp index 711a295..a956ce3 100644 --- a/src/pipe.hpp +++ b/src/pipe.hpp @@ -134,10 +134,10 @@ namespace zmq // Specifies the object to get events from the writer. void set_event_sink (i_writer_events *endpoint_); - // Checks whether a message can be written to the pipe. + // Checks whether messages can be written to the pipe. // If writing the message would cause high watermark and (optionally) - // swap to be exceeded, the function returns false. - bool check_write (); + // if the swap is full, the function returns false. + bool check_write (zmq_msg_t *msg_); // Writes a message to the underlying pipe. Returns false if the // message cannot be written because high watermark was reached. -- cgit v1.2.3