Lines Matching refs:share
33 CURLSH *share;
57 what = "share";
93 what = "share";
149 curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share);
183 CURLSH *share;
199 /* prepare share */
201 share = curl_share_init();
202 if(!share) {
210 scode = curl_share_setopt(share, CURLSHOPT_LOCKFUNC, my_lock);
214 scode = curl_share_setopt(share, CURLSHOPT_UNLOCKFUNC, my_unlock);
218 scode = curl_share_setopt(share, CURLSHOPT_USERDATA, &user);
222 scode = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE);
226 scode = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_DNS);
231 curl_share_cleanup(share);
240 curl_share_cleanup(share);
245 test_setopt(curl, CURLOPT_SHARE, share);
271 tdata.share = share;
286 curl_share_cleanup(share);
296 test_setopt(curl, CURLOPT_SHARE, share);
314 curl_share_cleanup(share);
323 test_setopt(curl, CURLOPT_SHARE, share);
352 /* try to free share, expect to fail because share is in use */
354 scode = curl_share_cleanup(share);
357 share = NULL;
371 /* free share */
373 scode = curl_share_cleanup(share);