pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   /*   || 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: threads.c,v 1.257 2008/06/28 01:26:37 mast Exp $ + || $Id: threads.c,v 1.258 2008/06/28 22:05:04 mast Exp $   */      #include "global.h"      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;      /* #define PICKY_MUTEX */      #ifdef _REENTRANT
pike.git/src/threads.c:1770:    *! @value Thread.THREAD_RUNNING    *! @value Thread.THREAD_EXITED    *! @endint    */   void f_thread_id_status(INT32 args)   {    pop_n_elems(args);    push_int(THIS_THREAD->status);   }    - /*! @decl static string _sprintf(int c) + /*! @decl protected string _sprintf(int c)    *!    *! Returns a string identifying the thread.    */   void f_thread_id__sprintf (INT32 args)   {    int c = 0;    if(args>0 && Pike_sp[-args].type == 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_int64(PTR_TO_INT(THREAD_T_TO_PTR(THIS_THREAD->id)));    push_constant_text (")");    f_add (3);   }    - /*! @decl static int id_number() + /*! @decl protected int id_number()    *!    *! Returns an id number identifying the thread.    *!    *! @note    *! This function was added in Pike 7.2.204.    */   void f_thread_id_id_number(INT32 args)   {    pop_n_elems(args);    push_int64(PTR_TO_INT(THREAD_T_TO_PTR(THIS_THREAD->id)));