Lines Matching refs:threads
57 struct loopback_thread *threads;
818 thread = &threads[i];
839 thread = &threads[i];
914 threads = calloc(1, sizeof(struct loopback_thread) * j);
915 if (threads == NULL) {
919 /* sort all threads */
924 threads[k].loopbacks = malloc(l * sizeof(struct loopback *));
925 threads[k].loopbacks_count = l;
926 threads[k].output = output;
927 threads[k].threaded = j > 1;
930 threads[k].loopbacks[l++] = loopbacks[i];
942 thread_job(&threads[k]);
946 pthread_join(threads[k].thread, NULL);