pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:2678:   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_constant_text ("Thread.Thread("); +  push_text ("Thread.Thread(");    push_int64(PTR_TO_INT(THREAD_T_TO_PTR(THIS_THREAD->id))); -  push_constant_text (")"); +  push_text (")");    f_add (3);   }      /*! @decl protected int id_number()    *!    *! Returns an id number identifying the thread.    *!    *! @note    *! This function was added in Pike 7.2.204.    */