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.201 2003/02/10 17:10:40 mast Exp $ + || $Id: threads.c,v 1.202 2003/02/15 17:04:48 grubba Exp $   */      #ifndef CONFIGURE_TEST   #include "global.h" - RCSID("$Id: threads.c,v 1.201 2003/02/10 17:10:40 mast Exp $"); + RCSID("$Id: threads.c,v 1.202 2003/02/15 17:04:48 grubba Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;   #endif /* !CONFIGURE_TEST */      #ifdef _REENTRANT      #ifndef CONFIGURE_TEST      #include "threads.h"
pike.git/src/threads.c:1066:    push_int(0);    return;    }    case 1:    break;    }       /* Needs to be cloned here, since create()    * might use threads.    */ -  o=fast_clone_object(mutex_key,0); +  o=fast_clone_object(mutex_key);       DO_IF_DEBUG(    if(thread_for_id(th_self()) != Pike_interpreter.thread_id) {    debug_list_all_threads();    Pike_fatal("thread_for_id() (or Pike_interpreter.thread_id) failed! %p != %p\n",thread_for_id(th_self()),Pike_interpreter.thread_id) ;    } )       if(m->key)    {    if(threads_disabled)