Lines Matching refs:n
186 for (int n = 0; n < N; ++n) in do_test() local
188 int e = pthread_mutex_init (&map[n], &ma); in do_test()
200 printf ("mutex_init %d in round %d failed\n", n + 1, round); in do_test()
232 for (int n = 0; n < N; ++n) in do_test() local
234 int e = pthread_mutex_lock (&map[n]); in do_test()
237 printf ("mutex_lock %d failed in round %d\n", n + 1, round); in do_test()
242 for (int n = 0; n < N; ++n) in do_test() local
243 if (pthread_mutex_unlock (&map[n]) != 0) in do_test()
245 printf ("mutex_unlock %d failed in round %d\n", n + 1, round); in do_test()
249 for (int n = 0; n < N; ++n) in do_test() local
251 int e = pthread_mutex_destroy (&map[n]); in do_test()
255 n + 1, round, e); in do_test()
257 printf("nusers = %d\n", (int) map[n].__data.__nusers); in do_test()