Branch: Tag:

2007-06-19

2007-06-19 18:22:50 by Martin Stjernholm <mast@lysator.liu.se>

Fixed cpu time thread localness macros to work when compiling without thread
support.

Rev: src/pike_rusage.h:1.21
Rev: src/rusage.c:1.48

2:   || 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
105:   # 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
161:   #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);