pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c: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: threads.c,v 1.259 2008/06/29 12:37:11 nilsson Exp $ + || $Id: threads.c,v 1.260 2008/07/16 00:34:22 mast Exp $   */      #include "global.h"      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;      /* #define PICKY_MUTEX */      #ifdef _REENTRANT
pike.git/src/threads.c:2078:       mapping_insert(m, &key, &Pike_sp[-1]);   }      #ifdef PIKE_DEBUG   void gc_check_thread_local (struct object *o)   {    /* Only used by with locate_references. */    if (Pike_in_gc == GC_PASS_LOCATE) {    struct svalue key, *val; -  INT32 x; +     struct thread_state *s;       key.u.integer = ((struct thread_local *)CURRENT_STORAGE)->id;    key.type = T_INT;    key.subtype = NUMBER_NUMBER;       FOR_EACH_THREAD (s, {    if (s->thread_local &&    (val = low_mapping_lookup(s->thread_local, &key)))    debug_gc_check_svalues (val, 1,