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.250 2006/04/25 18:22:53 neotron Exp $ + || $Id: threads.c,v 1.251 2006/07/05 02:22:56 mast Exp $   */      #ifndef CONFIGURE_TEST   #include "global.h"      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;   #endif /* !CONFIGURE_TEST */      /* #define PICKY_MUTEX */
pike.git/src/threads.c:660:    FOR_EACH_THREAD (s, {    struct object *o = THREADSTATE2OBJ(s);    if (o) {    ref_push_object(o);    }    });    f_aggregate(DO_NOT_WARN(Pike_sp - oldsp));   }      #ifdef PIKE_DEBUG - void debug_list_all_threads(void) + PMOD_EXPORT void debug_list_all_threads(void)   {    INT32 x;    struct thread_state *s;    THREAD_T self = th_self();       fprintf(stderr,"--Listing all threads--\n");    dumpmem("Current thread: ",&self, sizeof(self));    fprintf(stderr,"Current interpreter thread state: %p%s\n",    Pike_interpreter.thread_state,    Pike_interpreter.thread_state == (struct thread_state *) (ptrdiff_t) -1 ?