Home | History | Annotate | Download | only in tests

Lines Matching refs:threads

15  * "Using POSIX Threads: Programming with Pthreads"
25 * A program spawns multiple threads and each one tries to
31 * exit of the threads using the pthread_join() operation.
43 /* With more than 2 threads, the precise error reports vary between
45 simple and just have 2 threads and so just 1 race. */
53 /* This is a hack: delay threads except the first enough so as to
54 ensure threads[0] gets to the pthread_once call first. This is so
80 pthread_t threads[NUM_THREADS];
87 r= pthread_create(&threads[i], NULL, child, &id_arg[i]);
92 pthread_join(threads[i], NULL);