Lines Matching refs:index
55 unsigned index;
58 for (index = 0; index < NUM_THREADS; ++index)
60 printf ("In main: creating thread %d\n", index);
61 result_code = pthread_create (&threads[index], NULL, perform_work, &go);
68 for (index = 0; index < NUM_THREADS; ++index)
71 result_code = pthread_join (threads[index], NULL);
73 printf ("In main: thread %d has completed\n", index);