Branch: Tag:

1997-09-08

1997-09-08 21:32:37 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

bugfix

Rev: src/threads.c:1.38

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.37 1997/09/08 19:58:42 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.38 1997/09/08 21:32:37 hubbe Exp $");      int num_threads = 1;   int threads_disabled = 0;
181:    struct mutex_storage *m;    struct object *o;    -  pop_n_elems(args); +     m=THIS_MUTEX;    /* Needs to be cloned here, since create()    * might use threads.
216:    (unsigned int)m,    (unsigned int)OB2KEY(m->key)->mut,    (unsigned int)thread_id)); +  pop_n_elems(args);    push_object(o);   }   
224:    struct mutex_storage *m;    struct object *o;    int i=0; -  pop_n_elems(args); +        o=clone_object(mutex_key,0);    m=THIS_MUTEX;
248:    i=1;    }    +  pop_n_elems(args);    if(i)    {    push_object(o);