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.248 2006/01/30 10:03:21 grubba Exp $ + || $Id: threads.c,v 1.249 2006/04/07 05:46:01 mast Exp $   */      #ifndef CONFIGURE_TEST   #include "global.h"      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;   #endif /* !CONFIGURE_TEST */      /* #define PICKY_MUTEX */
pike.git/src/threads.c:1687:    low_backtrace(& foo->state);    }    else    {    push_int(0);    f_allocate(1);    }   }      /*! @decl int status() +  *! +  *! Returns the status of the thread. +  *! +  *! @returns +  *! @int +  *! @value @[Thread.THREAD_NOT_STARTED] +  *! @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)    *!    *! Returns a string identifying the thread.