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.197 2003/01/10 17:06:12 grubba Exp $ + || $Id: threads.c,v 1.198 2003/01/26 11:09:01 mirar Exp $   */      #include "global.h" - RCSID("$Id: threads.c,v 1.197 2003/01/10 17:06:12 grubba Exp $"); + RCSID("$Id: threads.c,v 1.198 2003/01/26 11:09:01 mirar 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:994:    m=THIS_MUTEX;    if(!args)    type=0;    else    get_all_args("mutex->lock",args,"%i",&type);       switch(type)    {    default:    bad_arg_error("mutex->lock", Pike_sp-args, args, 2, "int(0..2)", Pike_sp+1-args, -  "Unknown mutex locking style: %d\n",type); +  "Unknown mutex locking style: %"PRINTPIKEINT"d\n",type);          case 0:    case 2:    if(m->key && OB2KEY(m->key)->owner == Pike_interpreter.thread_id)    {    THREADS_FPRINTF(0,    (stderr, "Recursive LOCK k:%08x, m:%08x(%08x), t:%08x\n",    (unsigned int)OB2KEY(m->key),    (unsigned int)m,
pike.git/src/threads.c:1096:       if(!args)    type=0;    else    get_all_args("mutex->trylock",args,"%i",&type);       switch(type)    {    default:    bad_arg_error("mutex->trylock", Pike_sp-args, args, 2, "int(0..2)", Pike_sp+1-args, -  "Unknown mutex locking style: %d\n",type); +  "Unknown mutex locking style: %"PRINTPIKEINT"d\n",type);       case 0:    if(m->key && OB2KEY(m->key)->owner == Pike_interpreter.thread_id)    {    Pike_error("Recursive mutex locks!\n");    }       case 2:    case 1:    break;