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.249 2006/04/07 05:46:01 mast Exp $ + || $Id: threads.c,v 1.250 2006/04/25 18:22:53 neotron Exp $   */      #ifndef CONFIGURE_TEST   #include "global.h"      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;   #endif /* !CONFIGURE_TEST */      /* #define PICKY_MUTEX */
pike.git/src/threads.c:1635:    /* Wake up any threads that might be waiting on this cond.    *    * Note that we are already destructed (o->prog == NULL),    * so wait_count can't increase.    *    * FIXME: This code wouldn't be needed if exit callbacks were called    * only when the ref count reaches zero.    * /grubba 2006-01-29    */    while (THIS_COND->wait_count) { -  co_broadcast(THIS_COND); +  co_broadcast(&(THIS_COND->cond));       THREADS_ALLOW();   #ifdef HAVE_NO_YIELD    sleep(0);   #else /* HAVE_NO_YIELD */    th_yield();   #endif /* HAVE_NO_YIELD */    THREADS_DISALLOW();    }    co_destroy(&(THIS_COND->cond));