Branch: Tag:

1999-06-08

1999-06-08 21:07:55 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

more debug

Rev: src/signal_handler.c:1.136
Rev: src/threads.c:1.99

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.98 1999/06/03 06:10:03 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.99 1999/06/08 21:07:55 hubbe Exp $");      int num_threads = 1;   int threads_disabled = 0;
378: Inside #if defined(PIKE_DEBUG)
   if(h>=THREAD_TABLE_SIZE)    fatal("thread_table_hash failed miserably!\n");    if(thread_state_for_id(s->id)) +  { +  if(thread_state_for_id(s->id) == s)    fatal("Registring thread twice!\n"); -  +  else +  fatal("Forgot to unregister thread!\n"); +  }   /* dumpmem("thread_table_insert",&s->id, sizeof(THREAD_T)); */   #endif    mt_lock( & thread_table_lock );