Lines Matching refs:share
43 CURLSH *share; member
101 curl_easy_setopt(curl, CURLOPT_SHARE, ctx->share); in test_thread()
145 static void execute(CURLSH *share, struct Ctx *ctx) in execute() argument
153 curl_share_setopt(share, CURLSHOPT_LOCKFUNC, test_lock); in execute()
154 curl_share_setopt(share, CURLSHOPT_UNLOCKFUNC, test_unlock); in execute()
155 curl_share_setopt(share, CURLSHOPT_USERDATA, (void *)mutexes); in execute()
156 curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_SSL_SESSION); in execute()
167 curl_share_setopt(share, CURLSHOPT_LOCKFUNC, NULL); in execute()
168 curl_share_setopt(share, CURLSHOPT_UNLOCKFUNC, NULL); in execute()
176 static void execute(CURLSH *share, struct Ctx *ctx) in execute() argument
179 (void) share; in execute()
191 CURLSH* share; in test() local
196 share = curl_share_init(); in test()
197 if(!share) { in test()
203 ctx[i].share = share; in test()
210 execute(share, ctx); in test()
227 if(share) in test()
228 curl_share_cleanup(share); in test()