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.262 2008/08/05 21:23:46 mast Exp $ + || $Id: threads.c,v 1.263 2008/08/05 21:36:34 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:2459: Inside #if defined(DO_PIKE_CLEANUP) and #if defined(__NT__)
  #ifdef __NT__    Sleep (1);   #elif defined (HAVE_USLEEP)    usleep (1000);   #else    sleep (1);   #endif    THREADS_DISALLOW();    }    + #if 0    if (num_kills) { -  fprintf (stderr, "Killed %d thread(s)", num_kills - num_pending_interrupts); +  fprintf (stderr, "Killed %d thread(s) in exit cleanup", +  num_kills - num_pending_interrupts);    if (num_pending_interrupts) -  fprintf (stderr, ", %d haven't responded", num_pending_interrupts); +  fprintf (stderr, ", %d more haven't responded", num_pending_interrupts);    fputs (".\n", stderr);    } -  + #endif   }   #endif      void th_cleanup(void)   {    th_running = 0;       if (Pike_interpreter.thread_state) {    thread_table_delete(Pike_interpreter.thread_state);    Pike_interpreter.thread_state = NULL;