Home | History | Annotate | Download | only in tests

Lines Matching defs:nthread

66 /** Actual test, consisting of nthread threads. */
67 static void barriers_and_races(const int nthread, const int iterations)
75 t = malloc(nthread * sizeof(struct threadinfo));
81 pthread_barrier_init(&b, 0, nthread);
87 for (i = 0; i < nthread; i++)
95 i, nthread, strerror(res));
102 for (i = 0; i < nthread; i++)
115 int nthread;
118 nthread = (argc > 1) ? atoi(argv[1]) : 2;
122 barriers_and_races(nthread, iterations);