pike.git / lib / modules / Thread.pmod

version» Context lines:

pike.git/lib/modules/Thread.pmod:541: Inside #if constant(__builtin.thread_id)
   else    ([object]q[0])->provide( res );    }    object lock = mutex->lock();    free_threads += ({ this });    lock = 0;    st = gethrtime()-st;    total_time += st/1000.0;    handled++;    job = 0; +  q = 0;    if( st > max_time )    max_time = st;    ft_cond->broadcast();    } else {    object lock = mutex->lock();    threads -= ({ this });    free_threads -= ({ this });    lock = 0;    update_thread_name(1);    destruct();
pike.git/lib/modules/Thread.pmod:627: Inside #if constant(__builtin.thread_id)
   }    }    object(Handler) t = free_threads[0];    free_threads = free_threads[1..];    return t;    }          protected void dispatcher()    { -  while( array q = [array]job_queue->read() ) +  while( array q = [array]job_queue->read() ) {    aquire_thread()->run( q[1], q[0] ); -  +  q = 0; +  }    if (thread_name_cb)    thread_name_cb(this_thread(), 0);    }       protected class ValueAdjuster( object r, object r2, int i, mapping v )    {    void go(mixed vn, int err)    {    if (!r->status()) {    ([array]r->value)[ i ] = vn;