Lines Matching refs:ctx
88 struct Ctx *ctx = (struct Ctx *)ptr; in test_thread() local
98 curl_easy_setopt(curl, CURLOPT_URL, (char *)ctx->URL); in test_thread()
101 curl_easy_setopt(curl, CURLOPT_SHARE, ctx->share); in test_thread()
123 ctx->result = (int)res; in test_thread()
145 static void execute(CURLSH *share, struct Ctx *ctx) in execute() argument
159 thread[i] = Curl_thread_create(test_thread, (void *)&ctx[i]); in execute()
176 static void execute(CURLSH *share, struct Ctx *ctx) in execute() argument
181 test_thread((void *)&ctx[i]); in execute()
192 struct Ctx ctx[THREAD_SIZE]; in test() local
203 ctx[i].share = share; in test()
204 ctx[i].URL = URL; in test()
205 ctx[i].thread_id = i; in test()
206 ctx[i].result = 0; in test()
207 ctx[i].contents = NULL; in test()
210 execute(share, ctx); in test()
213 if(ctx[i].result) { in test()
214 res = ctx[i].result; in test()
217 struct curl_slist *item = ctx[i].contents; in test()
223 curl_slist_free_all(ctx[i].contents); in test()