pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: threads.c,v 1.238 2005/05/18 12:36:54 mast Exp $ + || $Id: threads.c,v 1.239 2005/11/15 10:31:56 grubba Exp $   */      #ifndef CONFIGURE_TEST   #include "global.h" - RCSID("$Id: threads.c,v 1.238 2005/05/18 12:36:54 mast Exp $"); + RCSID("$Id: threads.c,v 1.239 2005/11/15 10:31:56 grubba Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;   #endif /* !CONFIGURE_TEST */      /* #define PICKY_MUTEX */      #ifdef _REENTRANT      #ifndef CONFIGURE_TEST
pike.git/src/threads.c:1453:    if (THIS_KEY->owner_obj) {    free_object(THIS_KEY->owner_obj);    THIS_KEY->owner_obj=0;    }    THIS_KEY->mut=0;    THIS_KEY->initialized=0;    mutex_obj = THIS_KEY->mutex_obj;    THIS_KEY->mutex_obj = NULL;    if (mut->num_waiting)    co_signal(&mut->condition); -  else if (!mutex_obj->prog) +  else if (mutex_obj && !mutex_obj->prog)    co_destroy (&mut->condition); -  +  if (mutex_obj)    free_object(mutex_obj);    }   }      /*! @endclass    */      #define THIS_COND ((COND_T *)(CURRENT_STORAGE))      /*! @class Condition