msg_t::rm_refs closes the message when number of refs drops to 0 (issue 245)

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik
2011-09-02 13:44:22 +02:00
parent 82ab08d871
commit 2910a728dc
2 changed files with 16 additions and 7 deletions

View File

@@ -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: