pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1947:    }      #ifdef INTERNAL_PROFILING    fprintf (stderr, "Thread usage summary:\n");    debug_print_rusage (stderr);   #endif       /* FIXME: What about threads_disable? */    mt_unlock_interpreter();    th_exit(0); -  /* NOT_REACHED, but removes a warning */ -  return 0; +  UNREACHABLE(return 0);   }      #ifdef UNIX_THREADS   int num_lwps = 1;   #endif      /*! @class Thread    */      /*! @decl void create(function(mixed...:mixed|void) f, mixed ... args)
pike.git/src/threads.c:3272:    return 0;    }    me->neighbour = farmers;    farmers = me;   /* fprintf(stderr, "farm_wait %p\n", me); */    while(!me->harvest) co_wait( &me->harvest_moon, &rosie );    --_num_idle_farmers;    mt_unlock( &rosie );   /* fprintf(stderr, "farm_endwait %p\n", me); */    } while(1); -  /* NOT_REACHED */ -  return 0;/* Keep the compiler happy. */ +  UNREACHABLE(return 0);   }      int th_num_idle_farmers(void)   {    return _num_idle_farmers;   }         int th_num_farmers(void)   {