[zeromq-dev] Docs
Martin Sustrik
sustrik at 250bpm.com
Mon Jan 16 09:18:32 CET 2012
On 01/15/2012 05:53 PM, Marten Feldtmann wrote:
> I had asked the same question some days agon on this list, while working
> on a VASmalltalk binding for this library.
>
> It should be made clearer in the documentation, that one may reuse the
> structure after the application thread has closed it.
Yes. zmq_msg_t is basically a handle. There's no much point allocating
it on the heap. Normally you just keep it on stack. Once it is closed,
it can be re-initialised.
If you have an idea how to fix the docs, feel free to suggest a patch.
Martin
More information about the zeromq-dev
mailing list