Searched refs:id_arg (Results 1 – 2 of 2) sorted by relevance
56 int *id_arg, thread_num, rtn; in main() local59 id_arg = (int *)malloc(NUM_THREADS*sizeof(int)); in main()63 id_arg[thread_num] = thread_num; in main()68 (void *) &(id_arg[thread_num]))) in main()
79 int *id_arg, i, r; in main() local82 id_arg = (int *)malloc(NUM_THREADS*sizeof(int)); in main()86 id_arg[i] = i; in main()87 r= pthread_create(&threads[i], NULL, child, &id_arg[i]); in main()