pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.61 1998/03/20 22:53:31 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.62 1998/03/25 04:40:48 hubbe 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:388:    threads_evaluator_callback=add_to_callback(&evaluator_callbacks,    check_threads, 0,0);    }    push_object(arg->id);    arg->id->refs++;    THREADS_FPRINTF((stderr,"THREAD_CREATE -> t:%08x\n",(unsigned int)arg->id));    } else {    free_object(arg->id);    free_array(arg->args);    free((char *)arg); -  error("Failed to create thread.\n"); +  error("Failed to create thread (errno = %d).\n",errno);    }   }      #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);