Lines Matching defs:shared_counter
424 /* allocate shared memory for the shared_counter */
513 unsigned long *shared_counter;
523 /* allocate shared memory for the shared_counter */
524 shared_counter = get_shared_mem(sizeof(*shared_counter));
527 *shared_counter = 0;
543 tmp = *shared_counter;
545 *shared_counter = tmp + 1;
556 if (*shared_counter != 0) {
557 puts ("WTF! shared_counter != 0 before the children have been started!");
571 if (*shared_counter != num_child * num_iter) {
572 printf ("WTF! shared_counter != num_child * num_iter!\n"
573 "shared_counter = %lu\nnum_child = %d\nnum_iter=%d\n",
574 *shared_counter,