pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:2263:    if ((key->next = m->key)) {    m->key->prev = key;    }    m->key = key;    key->kind = KEY_PENDING;       DEBUG_CHECK_THREAD();       if(key->next)    { -  m->num_waiting++; +     if(threads_disabled)    {    free_object(o);    Pike_error("Cannot wait for mutexes when threads are disabled!\n");    } -  +  m->num_waiting++;    do    {    THREADS_FPRINTF(1, "WAITING TO LOCK m:%p\n", m);    SWAP_OUT_CURRENT_THREAD();    co_wait_interpreter(& m->condition);    SWAP_IN_CURRENT_THREAD();    check_threads_etc();    } while (key->next);    m->num_waiting--;    }