Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:856:      int number_of_threads;   //! The number of handler threads to run.      int busy_threads;   //! The number of currently busy threads.      protected array(object) handler_threads = ({});   //! The handler threads, the list is kept for debug reasons.    + int(0..1) handler_threads_available() + { +  return sizeof(handler_threads) && 1; + } +    void start_handler_threads()   {    if (query("numthreads") <= 1) {    set( "numthreads", 1 );    report_warning (LOC_S(1, "Starting one thread to handle requests.")+"\n");    } else {    report_notice (LOC_S(2, "Starting %d threads to handle requests.")+"\n",    query("numthreads") );    }    array(object) new_threads = ({});