Lines Matching refs:share
31 CURLSH *share;
52 what = "share";
79 what = "share";
115 curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share);
139 CURLSH *share;
152 /* prepare share */
154 share = curl_share_init();
155 if(!share) {
163 scode = curl_share_setopt(share, CURLSHOPT_LOCKFUNC, my_lock);
167 scode = curl_share_setopt(share, CURLSHOPT_UNLOCKFUNC, my_unlock);
171 scode = curl_share_setopt(share, CURLSHOPT_USERDATA, &user);
175 scode = curl_share_setopt(share, CURLSHOPT_SHARE,
181 curl_share_cleanup(share);
192 tdata.share = share;
205 curl_share_cleanup(share);
213 test_setopt(curl, CURLOPT_SHARE, share);
218 /* try to free share, expect to fail because share is in use */
220 scode = curl_share_cleanup(share);
223 share = NULL;
235 /* free share */
237 scode = curl_share_cleanup(share);