diff options
| -rw-r--r-- | rotord/src/rotord.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rotord/src/rotord.h b/rotord/src/rotord.h index 0eb1eb3..dd6a25c 100644 --- a/rotord/src/rotord.h +++ b/rotord/src/rotord.h @@ -86,12 +86,15 @@ class RenderContextHandler: public HTTPRequestHandler class RotorRequestHandlerFactory: public HTTPRequestHandlerFactory { public: - RotorRequestHandlerFactory(){ + RotorRequestHandlerFactory(): manager(pool){ xmlIO xml; if(xml.loadFile("settings.xml") ){ media_dir=xml.getAttribute("Rotor","media_dir","",0); thumbnail_dir=xml.getAttribute("Rotor","thumbnail_dir","",0); } + pool.addCapacity(300); + + //manager=Poco::TaskManager(pool); } HTTPRequestHandler* createRequestHandler(const HTTPServerRequest& request); private: @@ -100,6 +103,7 @@ class RotorRequestHandlerFactory: public HTTPRequestHandlerFactory std::unordered_map<std::string,std::string> renders; Poco::UUIDGenerator idGen; Poco::TaskManager manager; + Poco::ThreadPool pool; std::string media_dir; std::string thumbnail_dir; }; |
