pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.162 2001/09/05 23:44:32 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.163 2001/09/06 00:20:59 hubbe Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;      #ifdef _REENTRANT   #include "threads.h"   #include "array.h"   #include "mapping.h"   #include "object.h"   #include "pike_macros.h"
pike.git/src/threads.c:1276:    *! @seealso    *! @[predef::backtrace()]    */   void f_thread_backtrace(INT32 args)   {    void low_backtrace(struct Pike_interpreter *);    struct thread_state *foo = THIS_THREAD;       pop_n_elems(args);    -  if(foo->state.stack_pointer) +  if(foo->state.thread_id == Pike_interpreter.thread_id)    { -  +  f_backtrace(0); +  } +  else if(foo->state.stack_pointer) +  {    low_backtrace(& foo->state); -  }else{ +  } +  else +  {    push_int(0);    f_allocate(1);    }   }      /*! @decl int status()    */   void f_thread_id_status(INT32 args)   {    pop_n_elems(args);