pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.114 2000/03/24 22:24:28 grubba Exp $"); + RCSID("$Id: threads.c,v 1.115 2000/03/25 20:58:30 hubbe Exp $");      int num_threads = 1;   int threads_disabled = 0;      #ifdef _REENTRANT   #include "threads.h"   #include "array.h"   #include "mapping.h"   #include "object.h"   #include "pike_macros.h"
pike.git/src/threads.c:928:    if(threads_disabled)    error("Cannot wait for conditions when threads are disabled!\n");       if(args > 1) {    pop_n_elems(args - 1);    args = 1;    }       c=THIS_COND;    -  if((args > 0) && !((sp[-1].type == T_INT) && (!sp[-1].u.integer))) +  if((args > 0) && !IS_ZERO(sp-1))    {    struct object *key;    struct mutex_storage *mut;       if(sp[-1].type != T_OBJECT)    error("Bad argument 1 to condition->wait()\n");       key=sp[-1].u.object;       if(key->prog != mutex_key)