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/swap.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/swap.hpp') diff --git a/src/swap.hpp b/src/swap.hpp index 6180317..bc62fcd 100644 --- a/src/swap.hpp +++ b/src/swap.hpp @@ -59,8 +59,12 @@ namespace zmq // Returns true if the swap is empty; false otherwise. bool empty (); - // Returns true if and only if the swap is full. - bool full (); + +// // Returns true if and only if the swap is full. +// bool full (); + + // Returns true if the message fits into swap. + bool fits (zmq_msg_t *msg_); private: -- cgit v1.2.3