summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-03-30 14:11:33 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2012-03-30 14:11:33 +0200
commit06e97eddcbf7efbdd6902558372b3c161a825717 (patch)
tree65914b630deb97bfec346837dc52afa85c2ed6e2 /src
parente0a72ccd40e5590fc5604f4476427963498db678 (diff)
Print tree in each iteration.
Diffstat (limited to 'src')
-rw-r--r--src/task_proto.cc6
1 files changed, 6 insertions, 0 deletions
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:
{