Branch: Tag:

2000-04-19

2000-04-19 16:14:37 by Martin Stjernholm <mast@lysator.liu.se>

Better debug checks on the interpreter lock.

Rev: src/interpret.c:1.144
Rev: src/interpreter.h:1.41
Rev: src/modules/HTTPLoop/accept_and_parse.c:1.12
Rev: src/modules/HTTPLoop/cache.c:1.9
Rev: src/modules/Java/jvm.c:1.15
Rev: src/modules/files/file.c:1.174
Rev: src/modules/files/sendfile.c:1.38
Rev: src/program.c:1.229
Rev: src/signal_handler.c:1.169
Rev: src/threads.c:1.122
Rev: src/threads.h:1.86

5:   \*/   /**/   #include "global.h" - RCSID("$Id: interpret.c,v 1.143 2000/04/19 13:59:01 mast Exp $"); + RCSID("$Id: interpret.c,v 1.144 2000/04/19 16:03:30 mast Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"
669: Inside #if defined(PIKE_DEBUG) && defined(_REENTRANT)
   {    THREAD_T self = th_self();    -  TRYLOCK_INTERPRETER_LOCK(); +  CHECK_INTERPRETER_LOCK();       if( thread_id && !th_equal( OBJ2THREAD(thread_id)->id, self) )    fatal("Current thread is wrong.\n");