Lines Matching refs:thread_index
159 int thread_index;
161 for (thread_index = 0; thread_index < NUM_THREADS; thread_index++) {
162 SAFE_PTHREAD_CREATE(&thread_id[thread_index], NULL, alloc_mem,
163 (void *)(uintptr_t)thread_index);
170 for (thread_index = 0; thread_index < NUM_THREADS; thread_index++) {
173 SAFE_PTHREAD_JOIN(thread_id[thread_index], &status);
176 thread_index);