cURL / Mailing Lists / curl-library / Single Mail

curl-library

Share interface locking

From: Peteris Krumins [Newsgroups] <pknewsgroups_at_gmail.com>
Date: Sat, 10 Jun 2006 03:11:31 +0300

 Hello!

 Suppose I share DNS and Cookie data in a multi-threaded program.
 Documentation tells me that I need to handle locking of
CURL_LOCK_DATA_DNS and
 CURL_LOCK_DATA_COOKIE.
 
 Looking at test lib506.c provides (illustrates) also locking of
CURL_LOCK_DATA_SHARE
 but the curl/curl.h header tells that CURL_LOCK_DATA_SHARE is used
internally.

 Do I have to care about this CURL_LOCK_DATA_SHARE in my lock/unlock
callbacks?

Thanks.
P.Krumins
Received on 2006-06-10