Would this be different than simply using a NULL free function in zmq_msg_init_data?
On Wed, Dec 14, 2011 at 7:20 AM, Mikko Koppanen <[email protected]>wrote: > On Wed, Dec 14, 2011 at 8:32 AM, Martin Sustrik <[email protected]> > wrote: > > In theory we can add something like zmq_msg_add_ref() to get that > > functionality. > > > > The question is whether more explicit reference management using > > separate zmq_msg_t per reference doesn't lead to better coding style. > > Hi, > > I would be hesitant to expose reference counting via the API as this > is a very special case. Maybe we could rather have a send flag called > ZMQ_DONTCLOSE or something similar so that message can be reused if > necessary? > > -- > Mikko Koppanen > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
