pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.22 1997/04/18 01:29:28 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.23 1997/04/20 03:53:35 grubba 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:81:    cleanup_interpret();    num_threads--;    if(!num_threads)    {    remove_callback(threads_evaluator_callback);    threads_evaluator_callback=0;    }   /* fprintf(stderr,"Done[%d]\n",dbt--);*/    mt_unlock(& interpreter_lock);    th_exit(0); +  /* NOT_REACHED, but removes a warning */ +  return(NULL);   }      #ifdef UNIX_THREADS   int num_lwps = 1;   #endif      void f_thread_create(INT32 args)   {    THREAD_T dummy;    struct thread_starter *arg;