pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.30 1997/09/03 04:58:17 per Exp $"); + RCSID("$Id: threads.c,v 1.31 1997/09/03 08:07:36 mast Exp $");      int num_threads = 1;   int threads_disabled = 0;      #ifdef _REENTRANT   #include "threads.h"   #include "array.h"   #include "object.h"   #include "pike_macros.h"   #include "callback.h"
pike.git/src/threads.c:123:    push_object(arg->id);    arg->id->refs++;    } else {    free_object(arg->id);    free_array(arg->args);    free((char *)arg);    push_int(0);    }   }    + #ifdef UNIX_THREADS   void f_thread_set_concurrency(INT32 args)   {    int c=1;    if(args) c=sp[-args].u.integer;    else error("No argument to thread_set_concurrency(int concurrency);\n");    pop_n_elems(args);    num_lwps=c;    th_setconcurrency(c);   } -  + #endif      void f_this_thread(INT32 args)   {    pop_n_elems(args);    push_object(thread_id);    thread_id->refs++;   }      #define THIS_MUTEX ((struct mutex_storage *)(fp->current_storage))