pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2003-02-10
2003-02-10 16:57:55 by Martin Stjernholm <mast@lysator.liu.se>
d69f983fecbe1978e9032419790cfe6a34a65b35 (
9
lines) (+
5
/-
4
)
[
Show
|
Annotate
]
Branch:
7.9
Reverted bogus fix.
Rev: src/builtin_functions.c:1.474
Rev: src/gc.c:1.205
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: builtin_functions.c,v 1.
473
2003/02/10
15
:
24
:
12
grubba
Exp $
+
|| $Id: builtin_functions.c,v 1.
474
2003/02/10
16
:
57
:
55
mast
Exp $
*/ #include "global.h"
-
RCSID("$Id: builtin_functions.c,v 1.
473
2003/02/10
15
:
24
:
12
grubba
Exp $");
+
RCSID("$Id: builtin_functions.c,v 1.
474
2003/02/10
16
:
57
:
55
mast
Exp $");
#include "interpret.h" #include "svalue.h" #include "pike_macros.h"
5996:
/* Don't subtract the gc time at all if we don't know whether it's * thread local or not, since if we do it wrong we might end up * returning a negative number. */
-
#if
defined(PIKE_THREADS) && (
CPU_TIME_IS_THREAD_LOCAL == YES
)
+
#if CPU_TIME_IS_THREAD_LOCAL == YES
time -= OBJ2THREAD(Pike_interpreter.thread_id)->auto_gc_time;
-
#elif
!defined(PIKE_THREADS) || (
CPU_TIME_IS_THREAD_LOCAL == NO
)
+
#elif CPU_TIME_IS_THREAD_LOCAL == NO
time -= auto_gc_time; #endif