diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-10-24 14:13:13 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-10-24 14:13:13 +0100 |
| commit | 525780ac886baf7ce3d9f186149f7717717c9e3a (patch) | |
| tree | 7d889b3194428f49c97cc97417dd8dd0a5463e4f | |
| parent | 4bbd911dbf47e10965f384322a3fc3dde830b629 (diff) | |
increase thread count limit
| -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; }; |
