Branch: Tag:

2001-06-20

2001-06-20 23:13:54 by Martin Stjernholm <mast@lysator.liu.se>

Using Pike_fp->current_object->storage doesn't work too well when programs
are inherited. Besides, Pike_fp->current_storage is one less deference..

Rev: src/builtin_functions.c:1.343
Rev: src/modules/_Roxen/roxen.c:1.10
Rev: src/threads.c:1.155

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.154 2001/05/16 23:34:38 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.155 2001/06/20 23:13:52 mast Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;
1130:   void f_thread_local_create( INT32 args )   {    static INT32 thread_local_id = 0; -  ((struct thread_local *)Pike_fp->current_object->storage)->id = +  ((struct thread_local *)CURRENT_STORAGE)->id =    thread_local_id++;    pop_n_elems(args);    push_int(0);