pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.12 1996/11/19 10:04:29 neotron Exp $"); + RCSID("$Id: threads.c,v 1.13 1996/12/06 08:30:17 per Exp $");      int num_threads = 1;   int threads_disabled = 0;      #ifdef _REENTRANT   #include "threads.h"   #include "array.h"   #include "object.h"   #include "macros.h"   #include "callback.h"
pike.git/src/threads.c:122:      void th_init()   {    mt_lock( & interpreter_lock);    pthread_attr_init(&pattr);   #ifdef HAVE_PTHREAD_ATTR_SETSTACKSIZE    pthread_attr_setstacksize(&pattr, 2 * 1024 * 1204);   #endif    pthread_attr_setdetachstate(&pattr, PTHREAD_CREATE_DETACHED);    -  add_efun("thread_create",f_thread_create,"function(mixed ...:int)",OPT_SIDE_EFFECT); -  add_efun("this_thread",f_this_thread,"function(:object)",OPT_EXTERNAL_DEPEND); +  add_efun("thread_create",f_thread_create,"function(mixed ...:object)", +  OPT_SIDE_EFFECT); +  add_efun("this_thread",f_this_thread,"function(:object)", +  OPT_EXTERNAL_DEPEND);   }         #define THIS_MUTEX ((struct mutex_storage *)(fp->current_storage))         /* Note:    * No reference is kept to the key object, it is destructed if the    * mutex is destructed. The key pointer is set to zero by the    * key object when the key is destructed.