Branch: Tag:

2003-02-08

2003-02-08 17:12:27 by Martin Stjernholm <mast@lysator.liu.se>

Exclude the time spent in the gc from the measurements returned by
gethrvtime.

Rev: src/builtin_functions.c:1.469
Rev: src/gc.c:1.200
Rev: src/gc.h:1.98
Rev: src/threads.c:1.200
Rev: src/threads.h:1.122

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: threads.c,v 1.199 2003/02/08 02:28:40 mast Exp $ + || $Id: threads.c,v 1.200 2003/02/08 17:12:27 mast Exp $   */      #ifndef CONFIGURE_TEST   #include "global.h" - RCSID("$Id: threads.c,v 1.199 2003/02/08 02:28:40 mast Exp $"); + RCSID("$Id: threads.c,v 1.200 2003/02/08 17:12:27 mast Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;
1500:    THIS_THREAD->status=THREAD_NOT_STARTED;    co_init(& THIS_THREAD->status_change);    THIS_THREAD->thread_local=NULL; + #if CPU_TIME_IS_THREAD_LOCAL == YES +  THIS_THREAD->auto_gc_time = 0; + #endif   }