Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:5837:    else if (b == backend_thread)    return 1;    else    return a->id_number() > b->id_number();    });       foreach (threads, Thread.Thread thread) {    describe_thread (thread);    }    +  threads = 0; +  +  if (catch {    array(array) queue = handle_queue->peek_array();       // Ignore the handle thread shutdown marker, if any.    queue -= ({0});       if (!sizeof (queue)) -  report_debug ("###### No entries in the handler queue\n"); +  report_debug("###### No entries in the handler queue.\n");    else { -  report_debug ("###### %d entries in the handler queue:\n>>\n", +  report_debug("###### %d entries in the handler queue:\n>>\n",    sizeof (queue)); -  foreach (queue; int i; array task) -  report_debug (">> %d: %s\n", i, +  foreach(queue; int i; array task) +  report_debug(">> %d: %s\n", i,    replace (debug_format_queue_task (task), "\n", "\n>> ")); -  report_debug (">> \n"); +  report_debug(">> \n");    } -  +  queue = 0; +  }) { +  report_debug("###### Handler queue busy.\n"); +  }    -  queue = bg_queue->peek_array(); +  if (catch { +  array queue = bg_queue->peek_array();       if (!sizeof (queue))    report_debug ("###### No entries in the background_run queue\n");    else {    report_debug ("###### %d entries in the background_run queue:\n>>\n",    sizeof (queue));    foreach (queue; int i; array task)    report_debug (">> %d: %s\n", i,    replace (debug_format_queue_task (task), "\n", "\n>> "));    report_debug (">> \n");    } -  +  queue = 0; +  }) { +  report_debug("###### background_run queue busy.\n"); +  }       report_debug ("###### Thread and queue dumps done at %s\n", ctime (time()));    -  queue = 0; -  threads = 0; +     threads_disabled = 0;      #ifdef DEBUG    report_debug (RoxenDebug.report_leaks());   #endif   }         // Dump threads by file polling.