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.1110 2012/02/14 22:55:00 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1111 2012/02/14 23:10:13 jonasw 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:5655:    return 0;    else if (b == backend_thread)    return 1;    else    return a->id_number() > b->id_number();    });       int hrnow = gethrtime();    foreach (threads, Thread.Thread thread) {    string thread_descr = ""; +  if (string th_name = thread_name(thread, 1)) +  thread_descr += " - " + th_name;    if (int start_hrtime = thread_task_start_times[thread]) -  thread_descr += sprintf (", busy for %.3fs", +  thread_descr += sprintf (" - busy for %.3fs",    (hrnow - start_hrtime) / 1e6); -  if (thread == backend_thread) -  thread_descr += " (backend thread)"; +     report_debug(">> ### Thread 0x%x%s:\n",    thread->id_number(),    thread_descr);    report_debug(">> " +    replace (describe_backtrace (thread->backtrace()),    "\n", "\n>> ") +    "\n");    }       array(array) queue = handle_queue->peek_array();