Home | History | Annotate | Download | only in gdb.threads

Lines Matching refs:idx

92   int idx, res;
94 for (idx = 0; idx < MAX_THREADS; ++idx)
95 if (!threads[idx].started)
98 if (idx == MAX_THREADS)
102 res = pthread_mutex_lock (&threads[idx].mutex);
106 res = pthread_create (&threads[idx].thr, NULL,
107 thread_function, &threads[idx]);
111 res = pthread_cond_wait (&threads[idx].cond, &threads[idx].mutex);
116 res = pthread_mutex_unlock (&threads[idx].mutex);
128 for (int idx = 0; idx < MAX_THREADS; ++idx)
129 if (threads[idx].started)
134 res = pthread_mutex_lock (&threads[idx].mutex);
139 res = pthread_cond_signal (&threads[idx].cond);
143 res = pthread_mutex_unlock (&threads[idx].mutex);
148 res = pthread_join (threads[idx].thr, &retval);
153 assert (threads[idx].started);
154 threads[idx].started = FALSE;