Lines Matching refs:share
34 CURLSH *share;
55 what = "share";
79 what = "share";
123 curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share);
155 CURLSH *share;
169 /* prepare share */
171 if ((share = curl_share_init()) == NULL) {
179 scode = curl_share_setopt( share, CURLSHOPT_LOCKFUNC, my_lock);
183 scode = curl_share_setopt( share, CURLSHOPT_UNLOCKFUNC, my_unlock);
187 scode = curl_share_setopt( share, CURLSHOPT_USERDATA, &user);
191 scode = curl_share_setopt( share, CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE);
195 scode = curl_share_setopt( share, CURLSHOPT_SHARE, CURL_LOCK_DATA_DNS);
200 curl_share_cleanup(share);
213 tdata.share = share;
228 curl_share_cleanup(share);
238 test_setopt( curl, CURLOPT_SHARE, share );
245 /* try to free share, expect to fail because share is in use*/
247 scode = curl_share_cleanup( share );
251 share = NULL;
265 /* free share */
267 scode = curl_share_cleanup( share );