pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:2707:   void f_thread_id__sprintf (INT32 args)   {    int c = 0;    if(args>0 && TYPEOF(Pike_sp[-args]) == PIKE_T_INT)    c = Pike_sp[-args].u.integer;    pop_n_elems (args);    if(c != 'O') {    push_undefined();    return;    } -  push_text ("Thread.Thread("); +  push_static_text ("Thread.Thread(");    push_int64(PTR_TO_INT(THREAD_T_TO_PTR(THIS_THREAD->id))); -  push_text (")"); +  push_static_text (")");    f_add (3);   }      /*! @decl protected int id_number()    *!    *! Returns an id number identifying the thread.    */   void f_thread_id_id_number(INT32 args)   {    pop_n_elems(args);