Searched refs:NUM_THREADS (Results 1 – 5 of 5) sorted by relevance
46 #define NUM_THREADS 2 macro59 assert(myid >= 0 && myid < NUM_THREADS); in maybe_stall()80 pthread_t threads[NUM_THREADS]; in main()82 id_arg = (int *)malloc(NUM_THREADS*sizeof(int)); in main()84 for (i = 0; i < NUM_THREADS; i++) { in main()90 for (i = 0; i < NUM_THREADS; i++) { in main()
31 #define NUM_THREADS 10 macro57 pthread_t threads[NUM_THREADS]; in main()59 id_arg = (int *)malloc(NUM_THREADS*sizeof(int)); in main()61 for (thread_num = 0; thread_num < NUM_THREADS; (thread_num)++) { in main()75 for (thread_num = 0; thread_num < NUM_THREADS; thread_num++) { in main()
19 #define NUM_THREADS 3 macro72 for (i = 0; i < NUM_THREADS; i++) { in main()
11 #define NUM_THREADS 10 macro60 SDL_Thread *threads[NUM_THREADS]; in main()80 printf("Running %d threads, semaphore value = %d\n", NUM_THREADS, init_sem); in main()82 for( i = 0; i < NUM_THREADS; ++i ) { in main()92 for( i = 0; i < NUM_THREADS; ++i ) { in main()
11 #define NUM_THREADS 10 macro46 pthread_t tid[NUM_THREADS]; in main()51 for (i = 0; i < NUM_THREADS; i++) in main()54 for (i = 0; i < NUM_THREADS; i++) in main()