Branch: Tag:

2003-02-10

2003-02-10 10:53:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Support not having threads again.

Rev: src/gc.c:1.203

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: gc.c,v 1.202 2003/02/09 15:30:57 mast Exp $ + || $Id: gc.c,v 1.203 2003/02/10 10:53:25 grubba Exp $   */      #include "global.h"
33:      #include "block_alloc.h"    - RCSID("$Id: gc.c,v 1.202 2003/02/09 15:30:57 mast Exp $"); + RCSID("$Id: gc.c,v 1.203 2003/02/10 10:53:25 grubba Exp $");      int gc_enabled = 1;   
2910:    alloc_threshold = (ptrdiff_t)new_threshold;       if (!explicit_call && last_gc_time != (cpu_time_t) -1) { - #if CPU_TIME_IS_THREAD_LOCAL == YES + #if defined(PIKE_THREADS) && (CPU_TIME_IS_THREAD_LOCAL == YES)    OBJ2THREAD(Pike_interpreter.thread_id)->auto_gc_time += last_gc_time; - #elif CPU_TIME_IS_THREAD_LOCAL == NO + #elif !defined(PIKE_THREADS) || (CPU_TIME_IS_THREAD_LOCAL == NO)    auto_gc_time += last_gc_time;   #endif    }