pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.21 1997/04/16 03:09:18 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.22 1997/04/18 01:29:28 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:194:    struct object *o;    int i=0;    pop_n_elems(args);       o=clone_object(mutex_key,0);    m=THIS_MUTEX;    mt_lock(& mutex_kluge);    THREADS_ALLOW();    if(!m->key)    { -  OB2KEY(o)->mut=THIS_MUTEX; +  OB2KEY(o)->mut=m;    m->key=o;    i=1;    }    mt_unlock(&mutex_kluge);    THREADS_DISALLOW();       if(i)    {    push_object(o);    } else {