The manpage for the zmq_msg_init_data() function needs a note about thread- safety of the deallocation callback function.
-- Robert G. Jakabosky
From a8379425d8e16e6922058c2844ab57a80406c071 Mon Sep 17 00:00:00 2001 From: Robert G. Jakabosky <[email protected]> Date: Sun, 3 Apr 2011 10:24:52 -0700 Subject: [PATCH] Add note about thread-safety to zmq_msg_init_data() manpage. Signed-off-by: Robert G. Jakabosky <[email protected]> --- doc/zmq_msg_init_data.txt | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/doc/zmq_msg_init_data.txt b/doc/zmq_msg_init_data.txt index 8378757..191019b 100644 --- a/doc/zmq_msg_init_data.txt +++ b/doc/zmq_msg_init_data.txt @@ -25,6 +25,9 @@ If provided, the deallocation function 'ffn' shall be called once the data buffer is no longer required by 0MQ, with the 'data' and 'hint' arguments supplied to _zmq_msg_init_data()_. +CAUTION: The deallocation function 'ffn' needs to be thread-safe, since it +will be called from an arbitrary thread. + CAUTION: Never access 'zmq_msg_t' members directly, instead always use the _zmq_msg_ family of functions. -- 1.7.4.1
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
