Lines Matching full:share
31 CURLSH *share; member
55 what = "share"; in my_lock()
91 what = "share"; in my_unlock()
146 curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share); in fire()
180 CURLSH *share; in test() local
196 /* prepare share */ in test()
198 share = curl_share_init(); in test()
199 if(!share) { in test()
207 scode = curl_share_setopt(share, CURLSHOPT_LOCKFUNC, my_lock); in test()
211 scode = curl_share_setopt(share, CURLSHOPT_UNLOCKFUNC, my_unlock); in test()
215 scode = curl_share_setopt(share, CURLSHOPT_USERDATA, &user); in test()
219 scode = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE); in test()
223 scode = curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_DNS); in test()
228 curl_share_cleanup(share); in test()
237 curl_share_cleanup(share); in test()
242 test_setopt(curl, CURLOPT_SHARE, share); in test()
268 tdata.share = share; in test()
283 curl_share_cleanup(share); in test()
293 test_setopt(curl, CURLOPT_SHARE, share); in test()
311 curl_share_cleanup(share); in test()
320 test_setopt(curl, CURLOPT_SHARE, share); in test()
349 /* try to free share, expect to fail because share is in use*/ in test()
351 scode = curl_share_cleanup(share); in test()
354 share = NULL; in test()
368 /* free share */ in test()
370 scode = curl_share_cleanup(share); in test()