Lines Matching refs:share
32 CURLSH *share;
53 what = "share";
80 what = "share";
116 curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share);
139 CURLSH *share;
152 /* prepare share */
154 if ((share = curl_share_init()) == NULL) {
162 scode = curl_share_setopt( share, CURLSHOPT_LOCKFUNC, my_lock);
166 scode = curl_share_setopt( share, CURLSHOPT_UNLOCKFUNC, my_unlock);
170 scode = curl_share_setopt( share, CURLSHOPT_USERDATA, &user);
174 scode = curl_share_setopt( share, CURLSHOPT_SHARE, CURL_LOCK_DATA_SSL_SESSION);
179 curl_share_cleanup(share);
192 tdata.share = share;
204 curl_share_cleanup(share);
212 test_setopt( curl, CURLOPT_SHARE, share );
217 /* try to free share, expect to fail because share is in use*/
219 scode = curl_share_cleanup( share );
223 share = NULL;
234 /* free share */
236 scode = curl_share_cleanup( share );