aboutsummaryrefslogtreecommitdiff
path: root/docs/libcurl/curl_global_init_mem.3
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2015-08-13 23:29:27 -0400
committerJay Satiro <raysatiro@yahoo.com>2015-08-13 23:29:27 -0400
commit9e1b1ca606d91822502f2bad26e781aa5e0dcfa0 (patch)
tree426f2ab9a20ef4e5ea3c2f796b82d12a417fe7f4 /docs/libcurl/curl_global_init_mem.3
parent15da07d2f2d7a4850b810ddf03c9b81d12999916 (diff)
curl_global_init_mem.3: Stronger thread safety warning
Bug: http://curl.haxx.se/mail/lib-2015-08/0016.html Reported-by: Eric Ridge
Diffstat (limited to 'docs/libcurl/curl_global_init_mem.3')
-rw-r--r--docs/libcurl/curl_global_init_mem.311
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/libcurl/curl_global_init_mem.3 b/docs/libcurl/curl_global_init_mem.3
index a21e63d8b..0e8c0fa55 100644
--- a/docs/libcurl/curl_global_init_mem.3
+++ b/docs/libcurl/curl_global_init_mem.3
@@ -36,12 +36,13 @@ This function works exactly as \fIcurl_global_init(3)\fP with one addition: it
allows the application to set callbacks to replace the otherwise used internal
memory functions.
-When you use this function, all callback arguments must be set to valid
-function pointers. \fBIf you are using libcurl from multiple threads or with
-the threaded resolver (the default in Windows) the callback replacement
-functions must be thread safe.\fP
+If you are using libcurl from multiple threads or libcurl was built with the
+threaded resolver option then the callback functions must be thread safe. The
+threaded resolver is a common build option to enable (and in some cases the
+default) so we strongly urge you to make your callback functions thread safe.
-The prototypes for the given callbacks should match these:
+All callback arguments must be set to valid function pointers. The
+prototypes for the given callbacks must match these:
.IP "void *malloc_callback(size_t size);"
To replace malloc()
.IP "void free_callback(void *ptr);"