pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1528: Inside #if defined(RDTSC) && defined(USE_CLOCK_FOR_SLICES) and #if defined(PROFILE_CHECK_THREADS)
   tps = 0;    }   #endif       goto do_yield;    }   #endif /* RDTSC && USE_CLOCK_FOR_SLICES */      #ifdef HAVE_GETHRTIME    { -  static union pike_hrtime last_ = 0; +  static union pike_hrtime last_;    union pike_hrtime now;    now.hrt = gethrtime();    if( now.val-last_.val < 50000000 ) /* 0.05s slice */    return;    last_.val = now.val;    }   #elif defined(HAVE_MACH_TASK_INFO_H) && defined(TASK_THREAD_TIMES_INFO)    {    static struct timeval last_check = { 0, 0 };    task_thread_times_info_data_t info;