pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.176 2004/03/09 14:12:58 grubba Exp $"); + RCSID("$Id: threads.c,v 1.177 2004/03/09 18:49:43 grubba 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:1029:    (THIS_KEY->mutex_obj) && (THIS_KEY->mutex_obj->prog))    {    struct object *owner = mut->owner;       THIS_KEY->mut = NULL;    mut->owner = NULL;       co_signal(& mut->condition);       if (owner) { -  free_object(mut->owner); +  free_object(owner);    }    }    if (THIS_KEY->mutex_obj) {    free_object(THIS_KEY->mutex_obj);    THIS_KEY->mutex_obj = NULL;    }   }      #define THIS_COND ((COND_T *)(CURRENT_STORAGE))   void f_cond_wait(INT32 args)