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 - 2001, 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.821 2003/01/24 10:41:38 anders Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.822 2003/02/05 13:33:58 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:4223:   }      // Dump all threads to the debug log.   void describe_all_threads()   {   #if constant (thread_create)    // Disable all threads to avoid potential locking problems while we    // have the backtraces. It also gives an atomic view of the state.    object threads_disabled = _disable_threads();    -  report_debug("### Describing all pike threads:\n\n"); +  report_debug("### Describing all Pike threads:\n\n");       array(Thread.Thread) threads = all_threads();    array(string|int) thread_ids =    map (threads,    lambda (Thread.Thread t) {    string desc = sprintf ("%O", t);    if (sscanf (desc, "Thread.Thread(%d)", int i)) return i;    else return desc;    });    sort (thread_ids, threads);
Roxen.git/server/base_server/roxen.pike:4248: Inside #if constant (thread_create) and #if defined(THREADS)
   (string) thread_ids[i],   #ifdef THREADS    threads[i] == backend_thread ? " (backend thread)" : ""   #else    ""   #endif    );    report_debug(describe_backtrace(threads[i]->backtrace()) + "\n");    }    -  report_debug ("### Total %d pike threads\n", sizeof (threads)); +  report_debug ("### Total %d Pike threads\n", sizeof (threads));       threads = 0;    threads_disabled = 0;   #else    report_debug("Describing single thread:\n%s\n",    describe_backtrace (backtrace()));   #endif   }      constant dump = roxenloader.dump;