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.206 2003/02/16 13:55:20 mast Exp $ + || $Id: threads.c,v 1.207 2003/02/16 15:05:07 mast Exp $   */      #ifndef CONFIGURE_TEST   #include "global.h" - RCSID("$Id: threads.c,v 1.206 2003/02/16 13:55:20 mast Exp $"); + RCSID("$Id: threads.c,v 1.207 2003/02/16 15:05:07 mast Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;   #endif /* !CONFIGURE_TEST */      #ifdef _REENTRANT      #ifndef CONFIGURE_TEST      #include "threads.h"
pike.git/src/threads.c:798:    thread_table_delete(arg.thread_state);    EXIT_THREAD_STATE(arg.thread_state);    Pike_interpreter.thread_obj = NULL;    Pike_interpreter.thread_state = NULL;    num_threads--;    if(!num_threads && threads_evaluator_callback)    {    remove_callback(threads_evaluator_callback);    threads_evaluator_callback=0;    } -  free_object(arg.thread_state); +  free_object(arg.thread_obj);      #ifdef INTERNAL_PROFILING    fprintf (stderr, "Thread usage summary:\n");    debug_print_rusage (stderr);   #endif       /* FIXME: What about threads_disable? */    mt_unlock_interpreter();    th_exit(0);    /* NOT_REACHED, but removes a warning */