pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin_functions.c,v 1.705 2010/07/28 22:51:00 mast Exp $ + || $Id: builtin_functions.c,v 1.706 2010/09/28 16:06:35 mast Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"
pike.git/src/builtin_functions.c:4454: Inside #if defined(HAVE_GETHRTIME)
  #ifdef HAVE_GETHRTIME    hrtime_t t0,tv;   #else    struct timeval t0,tv;   #endif       /* 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;    }       if(sizeof(FLOAT_TYPE)<sizeof(double))    delay += FLT_EPSILON*5; /* round up */      #ifdef HAVE_GETHRTIME    t0=tv=gethrtime();   #define GET_TIME_ELAPSED tv=gethrtime()   #define TIME_ELAPSED (tv-t0)*1e-9