summaryrefslogtreecommitdiff
path: root/src/msg.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-09-02 13:44:22 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-09-02 13:44:22 +0200
commit2910a728dc777068e6ae7f67041da185b0865171 (patch)
treea1e874f6f499a0643eca69ef1f56ee530fbe8541 /src/msg.hpp
parent82ab08d871628410e8b0b1fe63d25f1b27766b8d (diff)
msg_t::rm_refs closes the message when number of refs drops to 0 (issue 245)
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/msg.hpp')
-rw-r--r--src/msg.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/msg.hpp b/src/msg.hpp
index 1363e78..514f95b 100644
--- a/src/msg.hpp
+++ b/src/msg.hpp
@@ -73,8 +73,9 @@ namespace zmq
// refs_ times. No need to call copy.
void add_refs (int refs_);
- // Removes references previously added by add_refs.
- void rm_refs (int refs_);
+ // Removes references previously added by add_refs. If the number of
+ // references drops to 0, the message is closed and false is returned.
+ bool rm_refs (int refs_);
private: