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.1072 2010/11/10 18:39:28 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1073 2010/11/10 19:22:57 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:1227: Inside #if defined(THREADS)
   return bg_queue->size();   }      protected void bg_process_queue()   {    if (bg_process_running) return;    // Relying on the interpreter lock here.    bg_process_running = 1;       int maxbeats = -  min (time() - bg_last_busy, bg_time_buffer_max) * (int) (1 / 0.04); +  min (time() - bg_last_busy, bg_time_buffer_max) * (int) (1 / 0.01);      #ifndef NO_SLOW_REQ_BT    Pike.Backend monitor;    mixed call_out;   #endif       if (mixed err = catch {    // Make sure we don't run forever if background jobs are queued    // over and over again, to avoid starving other threads. (If they    // are starved enough, busy_threads will never be incremented.)