[zeromq-dev] msg_t destructor
Daniel Krikun
krikun.daniel at gmail.com
Mon Jul 22 10:02:26 CEST 2013
No clue about that? Obviously there is a reason for that, because
`zmq::msg_t::close` is invoked explicitly,
>From `zmq::pipe_t::process_pipe_term_ack`:
// We'll deallocate the inbound pipe, the peer will deallocate the
outbound
// pipe (which is an inbound pipe from its point of view).
// First, delete all the unread messages in the pipe. We have to do it
by
// hand because msg_t doesn't have automatic destructor. Then deallocate
// the ypipe itself.
msg_t msg;
while (inpipe->read (&msg)) {
int rc = msg.close ();
errno_assert (rc == 0);
}
On Sat, Jul 20, 2013 at 6:12 PM, Daniel Krikun <krikun.daniel at gmail.com>wrote:
> Hello,
>
> I've searched for the answer to the question, why there is no automatic
> destructor in msg_t class?
>
> Thx,
>
> --
> Daniel Krikun
>
--
Daniel Krikun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130722/8426c4b5/attachment.htm>
More information about the zeromq-dev
mailing list