pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:2202:       m=THIS_MUTEX;    if(!args)    type=0;    else    get_all_args(NULL, args, "%i", &type);       switch(type)    {    default: -  bad_arg_error("lock", args, 2, "int(0..2)", Pike_sp+1-args, +  bad_arg_error(NULL, args, 2, "int(0..2)", Pike_sp+1-args,    "Unknown mutex locking style: %"PRINTPIKEINT"d\n",type);          case 0:    case 2:    if(m->key && OB2KEY(m->key)->owner == Pike_interpreter.thread_state)    {    THREADS_FPRINTF(0,    "Recursive LOCK k:%p, m:%p(%p), t:%p\n",    OB2KEY(m->key), m, OB2KEY(m->key)->mut,
pike.git/src/threads.c:2305:    m=THIS_MUTEX;       if(!args)    type=0;    else    get_all_args(NULL, args, "%i", &type);       switch(type)    {    default: -  bad_arg_error("trylock", args, 2, "int(0..2)", Pike_sp+1-args, +  bad_arg_error(NULL, args, 2, "int(0..2)", Pike_sp+1-args,    "Unknown mutex locking style: %"PRINTPIKEINT"d\n",type);       case 0:    if(m->key && OB2KEY(m->key)->owner == Pike_interpreter.thread_state)    {    Pike_error("Recursive mutex locks!\n");    }       case 2:    case 1: