pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.184 2002/09/14 02:58:33 mast Exp $"); + RCSID("$Id: threads.c,v 1.185 2002/09/29 13:52:08 nilsson 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:806:    return(0);   }      #ifdef UNIX_THREADS   int num_lwps = 1;   #endif      /*! @class Thread    */    - /* @decl void create(function(mixed...:void) f, mixed ... args) + /*! @decl void create(function(mixed...:void) f, mixed ... args)    *!    *! This function creates a new thread which will run simultaneously    *! to the rest of the program. The new thread will call the function    *! @[f] with the arguments @[args]. When @[f] returns the thread will cease    *! to exist.    *!    *! All Pike functions are 'thread safe' meaning that running    *! a function at the same time from different threads will not corrupt    *! any internal data in the Pike process.    *!