Branch: Tag:

1997-02-06

1997-02-06 03:53:48 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added some sproc support.

Rev: src/threads.c:1.15
Rev: src/threads.h:1.10

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.14 1997/01/26 22:49:14 per Exp $"); + RCSID("$Id: threads.c,v 1.15 1997/02/06 03:53:48 grubba Exp $");      int num_threads = 1;   int threads_disabled = 0;
11:   #include "macros.h"   #include "callback.h"    +    struct object *thread_id;   static struct callback *threads_evaluator_callback=0;   
99:    arg=ALLOC_STRUCT(thread_starter);    arg->args=aggregate_array(args);    arg->id=clone(thread_id_prog,0); +     tmp=th_create(&dummy,new_thread_func,arg); -  +     if(!tmp)    {    num_threads++;
142:      void th_init()   { + #ifdef SGI_SPROC_THREADS + #error /* Need to specify a filename */ +  us_cookie = usinit(""); + #endif /* SGI_SPROC_THREADS */    mt_lock( & interpreter_lock);   #ifdef POSIX_THREADS    pthread_attr_init(&pattr);