summaryrefslogtreecommitdiff
path: root/rotord/src/rotord.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-11-02 16:13:41 +0000
committerComment <tim@gray.(none)>2013-11-02 16:13:41 +0000
commit510a5218d5e981db3dde9ed31ddc6f732ed6a22a (patch)
treeb9d09c4dbdefed1ec693e0492841cde426ef6643 /rotord/src/rotord.h
parent8864f5da9649c176e472a7fb8913dd8114deec54 (diff)
parenteaccb1437465c6aa49e1d5511876852543e3b0fa (diff)
merge branch
Diffstat (limited to 'rotord/src/rotord.h')
-rw-r--r--rotord/src/rotord.h6
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;
};