Lines Matching full:threads
21 #define THREADS 4 macro
32 static struct thread_data threads[THREADS]; variable
81 struct thread_data *td = &threads[i]; in thread_create()
101 struct thread_data *td0 = &threads[0]; in threads_create()
110 for (i = 1; !err && i < THREADS; i++) in threads_create()
118 struct thread_data *td0 = &threads[0]; in threads_destroy()
126 for (i = 1; !err && i < THREADS; i++) in threads_destroy()
127 err = pthread_join(threads[i].pt, NULL); in threads_destroy()
162 * The threads_create will not return before all threads in mmap_events()
168 TEST_ASSERT_VAL("failed to create threads", !threads_create()); in mmap_events()
178 TEST_ASSERT_VAL("failed to destroy threads", !threads_destroy()); in mmap_events()
185 for (i = 0; i < THREADS; i++) { in mmap_events()
186 struct thread_data *td = &threads[i]; in mmap_events()
214 * This test creates 'THREADS' number of threads (including
217 * When threads are created, we synthesize them with both