Lines Matching refs:j
96 int j; in bioInit() local
99 for (j = 0; j < BIO_NUM_OPS; j++) { in bioInit()
100 pthread_mutex_init(&bio_mutex[j],NULL); in bioInit()
101 pthread_cond_init(&bio_condvar[j],NULL); in bioInit()
102 bio_jobs[j] = listCreate(); in bioInit()
103 bio_pending[j] = 0; in bioInit()
116 for (j = 0; j < BIO_NUM_OPS; j++) { in bioInit()
117 void *arg = (void*)(unsigned long) j; in bioInit()
122 bio_threads[j] = thread; in bioInit()
213 int err, j; in bioKillThreads() local
215 for (j = 0; j < BIO_NUM_OPS; j++) { in bioKillThreads()
216 if (pthread_cancel(bio_threads[j]) == 0) { in bioKillThreads()
217 if ((err = pthread_join(bio_threads[j],NULL)) != 0) { in bioKillThreads()
220 j, strerror(err)); in bioKillThreads()
223 "Bio thread for job type #%d terminated",j); in bioKillThreads()