Lines Matching refs:g_numthreads
72 int g_numthreads;
229 if (new == g_numthreads) {
234 while (g_done_threads < g_numthreads) {
261 if (new == g_numthreads) {
277 g_long_spinid = rand() % g_numthreads;
288 for (j = 1; j < g_numthreads; j++) {
327 if (my_id < (g_numthreads - 1)) {
413 g_numthreads = atoi(argv[1]);
446 threads = (pthread_t*) malloc(sizeof(pthread_t) * g_numthreads);
449 g_thread_endtimes_abs = (uint64_t*) malloc(sizeof(uint64_t) * g_numthreads);
462 g_semarr = malloc(sizeof(semaphore_t) * g_numthreads);
465 for (i = 0; i < g_numthreads; i++) {
480 for (i = 0; i < g_numthreads; i++) {
510 for (j = 0; j < g_numthreads; j++) {
520 for (j = 1; j < g_numthreads; j++) {
544 usleep(g_numthreads * 10);
549 for (i = 0; i < g_numthreads; i++) {