From 2c7af35827863b1e0a167298140a38180980502c Mon Sep 17 00:00:00 2001 From: "Robert G. Jakabosky" Date: Sun, 3 Apr 2011 20:44:02 +0200 Subject: Add note about thread-safety to zmq_msg_init_data() manpage. Signed-off-by: Robert G. Jakabosky --- doc/zmq_msg_init_data.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/zmq_msg_init_data.txt b/doc/zmq_msg_init_data.txt index 8378757..a36787c 100644 --- a/doc/zmq_msg_init_data.txt +++ b/doc/zmq_msg_init_data.txt @@ -28,6 +28,9 @@ supplied to _zmq_msg_init_data()_. CAUTION: Never access 'zmq_msg_t' members directly, instead always use the _zmq_msg_ family of functions. +CAUTION: The deallocation function 'ffn' needs to be thread-safe, since it +will be called from an arbitrary thread. + CAUTION: The functions _zmq_msg_init()_, _zmq_msg_init_data()_ and _zmq_msg_init_size()_ are mutually exclusive. Never initialize the same 'zmq_msg_t' twice. -- cgit v1.2.3