mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:31:41 +03:00
CURLSHOPT_SHARE.md: mention multi-threading requires callbacks
- Explain that if data is shared in multiple threads then the user must set mutex callbacks. Reported-by: afengsoft@users.noreply.github.com Fixes https://github.com/curl/curl/issues/17774 Closes https://github.com/curl/curl/pull/17782
This commit is contained in:
parent
dc263e15e1
commit
cd9d791651
1 changed files with 3 additions and 0 deletions
|
|
@ -35,6 +35,9 @@ CURLSHOPT_SHARE(3) multiple times with different data arguments to have
|
|||
the share object share multiple types of data. Unset a type again by setting
|
||||
CURLSHOPT_UNSHARE(3).
|
||||
|
||||
If any of the data is to be shared in multiple threads then mutex callbacks
|
||||
must be set as well. See CURLSHOPT_LOCKFUNC(3) and CURLSHOPT_UNLOCKFUNC(3).
|
||||
|
||||
## CURL_LOCK_DATA_COOKIE
|
||||
|
||||
Cookie data is shared across the easy handles using this shared object. Note
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue