Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:894:    array(object) new_threads = ({});    for(; number_of_threads < query("numthreads"); number_of_threads++)    new_threads += ({ do_thread_create( "Handle Thread [" +    number_of_threads + "]",    handler_thread, number_of_threads ) });    handler_threads += new_threads;   }      protected void transfer_handler_queue(Queue from, Queue to, int|void count)   { -  int transferred = sizeof(handle_queue); +  int transferred = handle_queue->size();    -  while (sizeof(handle_queue)) { -  array entry = handle_queue->read(); +  while (array entry = handle_queue->try_read()) {    if (arrayp(entry)) {    low_handle_queue->write(entry);    }    }       // Some paranoia with respect to racing handle() vs start_handler_threads().    if (!transferred) {    if (++count > 2) return;    }