Branch: Tag:

2003-02-15

2003-02-15 17:33:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>

create_thread() is now truly a class...

Rev: src/builtin_functions.c:1.476
Rev: src/encode.c:1.164
Rev: src/gc.c:1.208
Rev: src/interpret.c:1.290
Rev: src/interpret.h:1.127
Rev: src/modules/HTTPLoop/timeout.c:1.11
Rev: src/modules/files/file.c:1.254
Rev: src/pike_threadlib.h:1.30
Rev: src/threads.c:1.203
Rev: src/threads.h:1.124

2:   || 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: interpret.c,v 1.289 2003/01/17 16:43:01 grubba Exp $ + || $Id: interpret.c,v 1.290 2003/02/15 17:33:33 grubba Exp $   */      #include "global.h" - RCSID("$Id: interpret.c,v 1.289 2003/01/17 16:43:01 grubba Exp $"); + RCSID("$Id: interpret.c,v 1.290 2003/02/15 17:33:33 grubba Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"
1211: Inside #if defined(PIKE_DEBUG) && defined(_REENTRANT)
      CHECK_INTERPRETER_LOCK();    -  if( Pike_interpreter.thread_id && !th_equal( OBJ2THREAD(Pike_interpreter.thread_id)->id, self) ) +  if( Pike_interpreter.thread_state && +  !th_equal(Pike_interpreter.thread_state->id, self) )    Pike_fatal("Current thread is wrong.\n");    -  if(thread_for_id(th_self()) != Pike_interpreter.thread_id) -  Pike_fatal("thread_for_id() (or Pike_interpreter.thread_id) failed in mega_apply! " -  "%p != %p\n", thread_for_id(self), Pike_interpreter.thread_id); +  if(thread_for_id(th_self()) != Pike_interpreter.thread_obj) +  Pike_fatal("thread_for_id() (or Pike_interpreter.thread_obj) failed in mega_apply! " +  "%p != %p\n", thread_for_id(self), Pike_interpreter.thread_obj);    }   #endif