Lines Matching refs:n
45 int n; in writer_thread() local
50 for (n = 0; n < WRITETRIES; ++n) in writer_thread()
81 int n; in reader_thread() local
86 for (n = 0; n < READTRIES; ++n) in reader_thread()
118 int n; in do_test() local
146 for (n = 0; n < NWRITERS; ++n) in do_test()
147 if (pthread_create (&thwr[n], NULL, writer_thread, in do_test()
148 (void *) (long int) n) != 0) in do_test()
154 for (n = 0; n < NREADERS; ++n) in do_test()
155 if (pthread_create (&thrd[n], NULL, reader_thread, in do_test()
156 (void *) (long int) n) != 0) in do_test()
163 for (n = 0; n < NWRITERS; ++n) in do_test()
164 if (pthread_join (thwr[n], &res) != 0) in do_test()
169 for (n = 0; n < NREADERS; ++n) in do_test()
170 if (pthread_join (thrd[n], &res) != 0) in do_test()