Commit 23b84e44 authored by Jay Satiro's avatar Jay Satiro
Browse files

curl_global_init_mem.3: Warn threaded resolver needs thread safe funcs

Bug: http://curl.haxx.se/mail/lib-2015-07/0149.html
Reported-by: Eric Ridge
parent 0da1f5dc
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -37,8 +37,9 @@ 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 with multiple threads the
callback replacement functions must be thread safe.\fP
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

The prototypes for the given callbacks should match these:
.IP "void *malloc_callback(size_t size);"