X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fserver.h;h=89aeca62632c3aeda94bff27b43e7fe494d6efa6;hb=3fc3aad8735903ced3dae65f764eb33e3f5b3f11;hp=4cb6f25631dacad1b94af089cbe4c6f6812f87c9;hpb=e89fb9d81358b51ed0e231725f7fb6eb63f96c5b;p=dcpomatic.git diff --git a/src/lib/server.h b/src/lib/server.h index 4cb6f2563..89aeca626 100644 --- a/src/lib/server.h +++ b/src/lib/server.h @@ -28,7 +28,7 @@ #include #include "log.h" -class DeadlineWrapper; +class Socket; /** @class ServerDescription * @brief Class to describe a server to which we can send encoding work. @@ -76,17 +76,17 @@ private: class Server { public: - Server (Log* log); + Server (boost::shared_ptr log); void run (int num_threads); private: void worker_thread (); - int process (boost::shared_ptr wrapper); + int process (boost::shared_ptr socket); std::vector _worker_threads; - std::list > _queue; + std::list > _queue; boost::mutex _worker_mutex; boost::condition _worker_condition; - Log* _log; + boost::shared_ptr _log; };