pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.176 2001/11/26 14:58:54 grubba Exp $"); + RCSID("$Id: threads.c,v 1.177 2001/12/16 02:49:44 mast Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT 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:1234:    if(threads_disabled)    Pike_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) && !IS_ZERO(Pike_sp-1)) +  if((args > 0) && !UNSAFE_IS_ZERO(Pike_sp-1))    {    struct object *key;    struct mutex_storage *mut;       if(Pike_sp[-1].type != T_OBJECT)    Pike_error("Bad argument 1 to condition->wait()\n");       key=Pike_sp[-1].u.object;       if(key->prog != mutex_key)