diff options
| author | Comment <tim@gray.(none)> | 2013-02-24 19:24:40 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-02-24 19:24:40 +0000 |
| commit | 9de16e3435b0e6fd14af991db278717387d676d3 (patch) | |
| tree | 54c906570bd936176a15d436137ccdc03052ad7e /rotord/rotord.h | |
| parent | 35f5f0938c82e9aa9f0c704b1d43dff3209ad567 (diff) | |
working threading
Diffstat (limited to 'rotord/rotord.h')
| -rwxr-xr-x | rotord/rotord.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/rotord/rotord.h b/rotord/rotord.h index dc5a831..472a879 100755 --- a/rotord/rotord.h +++ b/rotord/rotord.h @@ -21,6 +21,7 @@ #include "Poco/URI.h" using Poco::Net::ServerSocket; +using Poco::Net::HTTPResponse; using Poco::Net::HTTPRequestHandler; using Poco::Net::HTTPRequestHandlerFactory; using Poco::Net::HTTPServer; @@ -63,19 +64,22 @@ class AudioAnalyserHandler: public HTTPRequestHandler class RenderContextHandler: public HTTPRequestHandler { public: - RenderContextHandler(const std::vector <std::string> _command); + RenderContextHandler(string _content,HTTPServerResponse::HTTPStatus _status); void handleRequest(HTTPServerRequest& request,HTTPServerResponse& response); private: - std::vector <std::string> command; + std::string content; + HTTPServerResponse::HTTPStatus status; }; + class RotorRequestHandlerFactory: public HTTPRequestHandlerFactory { public: HTTPRequestHandler* createRequestHandler(const HTTPServerRequest& request); private: - std::unordered_map<std::string,Rotor::Render_context*> context; + std::unordered_map<std::string,Rotor::Render_context> context; Poco::UUIDGenerator idGen; + Poco::ThreadPool pool; }; class RotorServer: public Poco::Util::ServerApplication |
