pike.git / src / pike_rusage.h

version» Context lines:

pike.git/src/pike_rusage.h: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: pike_rusage.h,v 1.20 2007/06/10 23:11:17 mast Exp $ + || $Id: pike_rusage.h,v 1.21 2007/06/19 18:22:50 mast Exp $   */      #ifndef PIKE_RUSAGE_H   #define PIKE_RUSAGE_H      #include "global.h"      #ifdef HAVE_TIME_H   #include <time.h>   #endif
pike.git/src/pike_rusage.h:98: Inside #if defined(GCT_RUNTIME_CHOICE)
     #ifdef GCT_RUNTIME_CHOICE   # define CPU_TIME_MIGHT_BE_THREAD_LOCAL   # define CPU_TIME_MIGHT_NOT_BE_THREAD_LOCAL   #elif cpu_time_is_thread_local == 1   # define CPU_TIME_MIGHT_BE_THREAD_LOCAL   #else   # define CPU_TIME_MIGHT_NOT_BE_THREAD_LOCAL   #endif    + /* Always consider cpu time as not thread local if we're compiling +  * without thread support. */ + #ifndef PIKE_THREADS + # undef cpu_time_is_thread_local + # define cpu_time_is_thread_local 0 + # undef CPU_TIME_MIGHT_BE_THREAD_LOCAL + # ifndef CPU_TIME_MIGHT_NOT_BE_THREAD_LOCAL + # define CPU_TIME_MIGHT_NOT_BE_THREAD_LOCAL + # endif + #endif +    #endif /* !CONFIGURE_TEST_FALLBACK_GCT */      /* Choose get_real_time implementation. Prefer one that isn't affected    * by wall clock adjustments. */   #ifdef HAVE_POSIX_MONOTONIC_GRT   # define real_time_is_monotonic 1   # define posix_monotonic_grt_impl get_real_time_impl   # define posix_monotonic_grt get_real_time   # define posix_monotonic_grt_res get_real_time_res   # define GRT_IS_POSIX_MONOTONIC
pike.git/src/pike_rusage.h:154:   #else   /* The time is returned in milliseconds. (Note that the value will    * wrap after about 49 days.) */   typedef unsigned long cpu_time_t;   #define CPU_TIME_TICKS /* per second */ 1000   #define CPU_TIME_UNIT "ms"   #define PRINT_CPU_TIME "lu"   #endif      #ifdef GCT_RUNTIME_CHOICE + #ifndef cpu_time_is_thread_local   PMOD_EXPORT extern int cpu_time_is_thread_local; -  + #endif   PMOD_EXPORT extern const char *get_cpu_time_impl;   PMOD_EXPORT extern cpu_time_t (*get_cpu_time) (void);   PMOD_EXPORT extern cpu_time_t (*get_cpu_time_res) (void);   #else   PMOD_EXPORT extern const char get_cpu_time_impl[];   PMOD_EXPORT cpu_time_t get_cpu_time (void);   PMOD_EXPORT cpu_time_t get_cpu_time_res (void);   #endif      #ifdef GRT_RUNTIME_CHOICE