From 06e97eddcbf7efbdd6902558372b3c161a825717 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 30 Mar 2012 14:11:33 +0200 Subject: Print tree in each iteration. --- src/task_proto.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/task_proto.cc b/src/task_proto.cc index cf647d5..304080d 100644 --- a/src/task_proto.cc +++ b/src/task_proto.cc @@ -38,6 +38,10 @@ #include "messagehandler.h" #include "connectionhandler.h" +#include "taskmanager.h" + +extern TaskManager taskman; + #if 0 static void dump_handshake_info(struct lws_tokens *lwst) { @@ -85,6 +89,8 @@ int callback_lws_task(struct libwebsocket_context * context, enum libwebsocket_callback_reasons reason, void *user, void *in, size_t len) { + taskman.tree.toStdOut(); + switch (reason) { case LWS_CALLBACK_SERVER_WRITEABLE: { -- cgit v1.2.3