Lines Matching refs:share
29 CURLSH *share;
50 what = "share";
77 what = "share";
113 curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share);
136 CURLSH *share;
149 /* prepare share */
151 if ((share = curl_share_init()) == NULL) {
159 scode = curl_share_setopt( share, CURLSHOPT_LOCKFUNC, my_lock);
163 scode = curl_share_setopt( share, CURLSHOPT_UNLOCKFUNC, my_unlock);
167 scode = curl_share_setopt( share, CURLSHOPT_USERDATA, &user);
171 scode = curl_share_setopt( share, CURLSHOPT_SHARE, CURL_LOCK_DATA_SSL_SESSION);
176 curl_share_cleanup(share);
189 tdata.share = share;
201 curl_share_cleanup(share);
209 test_setopt( curl, CURLOPT_SHARE, share );
214 /* try to free share, expect to fail because share is in use*/
216 scode = curl_share_cleanup( share );
220 share = NULL;
231 /* free share */
233 scode = curl_share_cleanup( share );