diff options
| author | Comment <tim@gray.(none)> | 2013-02-24 23:24:18 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-02-24 23:24:18 +0000 |
| commit | d5193b058ca06db9bda772ccdf49a8c4976c7274 (patch) | |
| tree | f555499bf462c2b0e1ea0f10b8a21035f1e1e091 /rotord/rotord.h | |
| parent | 9de16e3435b0e6fd14af991db278717387d676d3 (diff) | |
working threading
Diffstat (limited to 'rotord/rotord.h')
| -rwxr-xr-x | rotord/rotord.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rotord/rotord.h b/rotord/rotord.h index 472a879..b948577 100755 --- a/rotord/rotord.h +++ b/rotord/rotord.h @@ -11,6 +11,8 @@ #include "Poco/DateTimeFormat.h" #include "Poco/Exception.h" #include "Poco/ThreadPool.h" +#include "Poco/Task.h" +#include "Poco/TaskManager.h" #include "Poco/Util/ServerApplication.h" #include "Poco/Util/Option.h" #include "Poco/Util/OptionSet.h" @@ -32,6 +34,7 @@ using Poco::Timestamp; using Poco::DateTimeFormatter; using Poco::DateTimeFormat; using Poco::ThreadPool; +using Poco::TaskManager; using Poco::Util::ServerApplication; using Poco::Util::Application; using Poco::Util::Option; @@ -79,7 +82,7 @@ class RotorRequestHandlerFactory: public HTTPRequestHandlerFactory private: std::unordered_map<std::string,Rotor::Render_context> context; Poco::UUIDGenerator idGen; - Poco::ThreadPool pool; + Poco::TaskManager manager; }; class RotorServer: public Poco::Util::ServerApplication |
