Lines Matching full:threads
6 * it's sysfs interface and then verifies that all threads
121 struct random_thread_args threads[THREADS]; in dscr_default_random_test() local
132 FAIL_IF(pthread_barrier_init(&barrier, NULL, THREADS)); in dscr_default_random_test()
136 for (int i = 0; i < THREADS; i++) { in dscr_default_random_test()
137 threads[i].expected_system_dscr = &expected_system_dscr; in dscr_default_random_test()
138 threads[i].rw_lock = &rw_lock; in dscr_default_random_test()
139 threads[i].barrier = &barrier; in dscr_default_random_test()
141 FAIL_IF(pthread_create(&threads[i].thread_id, NULL, in dscr_default_random_test()
142 dscr_default_random_thread, (void *)&threads[i])); in dscr_default_random_test()
145 for (int i = 0; i < THREADS; i++) in dscr_default_random_test()
146 FAIL_IF(pthread_join(threads[i].thread_id, NULL)); in dscr_default_random_test()