Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2009, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1106 2012/02/10 16:07:22 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1107 2012/02/14 16:52:38 mast Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:1086:    report_notice ("Created %d new handler threads to compensate "    "for %d blocked ones.\n", threads_to_create, blocked_threads);    }    }    else {    THREAD_WERR("Ignoring request to release handler threads during stop");    return;    }   }    + //! + int handler_threads_on_hold() {return !!hold_wakeup_cond;} +    protected Thread.MutexKey backend_block_lock;      void stop_handler_threads()   //! Stop all the handler threads and the backend, but give up if it   //! takes too long.   {    int timeout=15; // Timeout if the bg queue doesn't get shorter.    int background_run_timeout = 100; // Hard timeout that cuts off the bg queue.   #if constant(_reset_dmalloc)    // DMALLOC slows stuff down a bit...