Lines Matching full:share
31 CURLSH *share; member
52 what = "share"; in my_lock()
79 what = "share"; in my_unlock()
115 curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share); in fire()
139 CURLSH *share; in test() local
152 /* prepare share */ in test()
154 share = curl_share_init(); in test()
155 if(!share) { in test()
163 scode = curl_share_setopt(share, CURLSHOPT_LOCKFUNC, my_lock); in test()
167 scode = curl_share_setopt(share, CURLSHOPT_UNLOCKFUNC, my_unlock); in test()
171 scode = curl_share_setopt(share, CURLSHOPT_USERDATA, &user); in test()
175 scode = curl_share_setopt(share, CURLSHOPT_SHARE, in test()
181 curl_share_cleanup(share); in test()
194 tdata.share = share; in test()
207 curl_share_cleanup(share); in test()
215 test_setopt(curl, CURLOPT_SHARE, share); in test()
220 /* try to free share, expect to fail because share is in use */ in test()
222 scode = curl_share_cleanup(share); in test()
225 share = NULL; in test()
237 /* free share */ in test()
239 scode = curl_share_cleanup(share); in test()