From 1d796e6cf639354614f1152baab65d317271c357 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 16 Nov 2011 17:26:28 -0800 Subject: Kind of a big revamp of the TaskMan / Task model, in order to introduce a TaskScheduler. The idea is that we need to support multiple task managers from multiple threads. So that revamp means we now should be able to support that, except the TaskScheduler needs to implement a round robin system, to distribute tasks across multiple task managers. But at least, the fundamental redesign to permit this is here. --- src/HttpServer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/HttpServer.cc') diff --git a/src/HttpServer.cc b/src/HttpServer.cc index 608b8a8..b027824 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -354,7 +354,7 @@ typedef Balau::Listener HttpListener; void Balau::HttpServer::start() { Assert(!m_started); - m_listenerPtr = new HttpListener(m_port, m_local.to_charp()); + m_listenerPtr = createTask(new HttpListener(m_port, m_local.to_charp())); m_started = true; } -- cgit v1.2.3