pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:4641: Inside #if undefined(HAVE_AND_USE_POLL)
  }   #ifndef HAVE_AND_USE_POLL   #undef HAVE_POLL   #endif      static void delaysleep(double delay, unsigned do_abort_on_signal,    unsigned do_microsleep)   {   #define POLL_SLEEP_LIMIT 0.02    -  struct timeval gtod_t0, gtod_tv; +  struct timeval gtod_t0 = {0,0}, gtod_tv = {0,0};    cpu_time_t t0, tv;       /* Special case, sleep(0) means 'yield' */    if(delay == 0.0)    {    check_threads_etc();    /* Since check_threads doesn't yield on every call, we need this    * to ensure th_yield gets called. */    pike_thread_yield();    return;