Lines Matching refs:i
57 unsigned tid_count = NUM_THREADS, i; in test() local
78 for(i = 0; i < tid_count; i++) { in test()
80 results[i] = CURL_LAST; /* initialize with invalid value */ in test()
82 th = CreateThread(NULL, 0, run_thread, &results[i], 0, NULL); in test()
84 th = _beginthreadex(NULL, 0, run_thread, &results[i], 0, NULL); in test()
89 tid_count = i; in test()
93 ths[i] = th; in test()
97 for(i = 0; i < tid_count; i++) { in test()
98 WaitForSingleObject((HANDLE)ths[i], INFINITE); in test()
99 CloseHandle((HANDLE)ths[i]); in test()
100 if(results[i] != CURLE_OK) { in test()
103 i, (int) results[i], curl_easy_strerror(results[i])); in test()
130 unsigned tid_count = NUM_THREADS, i; in test() local
143 for(i = 0; i < tid_count; i++) { in test()
145 results[i] = CURL_LAST; /* initialize with invalid value */ in test()
146 res = pthread_create(&tids[i], NULL, run_thread, &results[i]); in test()
150 tid_count = i; in test()
157 for(i = 0; i < tid_count; i++) { in test()
158 pthread_join(tids[i], NULL); in test()
159 if(results[i] != CURLE_OK) { in test()
162 i, (int) results[i], curl_easy_strerror(results[i])); in test()