pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: interpret.c,v 1.142 2000/04/17 21:06:24 hubbe Exp $"); + RCSID("$Id: interpret.c,v 1.143 2000/04/19 13:59:01 mast Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"   #include "error.h"   #include "language.h"   #include "stralloc.h"   #include "constants.h"
pike.git/src/interpret.c:662: Inside #if defined(PROFILING) and #if defined(HAVE_GETHRTIME)
   (long)(time_base/100000));    }   #endif   #endif      #if defined(PIKE_DEBUG) && defined(_REENTRANT)    if(d_flag)    {    THREAD_T self = th_self();    +  TRYLOCK_INTERPRETER_LOCK(); +     if( thread_id && !th_equal( OBJ2THREAD(thread_id)->id, self) )    fatal("Current thread is wrong.\n");       if(thread_for_id(th_self()) != thread_id)    fatal("thread_for_id() (or thread_id) failed in mega_apply! "    "%p != %p\n", thread_for_id(self), thread_id);    }   #endif       switch(type)