Keep Waker around for longer so it works better (#2184).
[dcpomatic.git] / src / lib / encode_server.h
index 6e24a19849827cdde20c276e79d331b8a2cd1ab5..0ca60f3f3debf8c0b423618dcccc9d0f908d3955 100644 (file)
  */
 
 
-#include "server.h"
+#include "cross.h"
 #include "exception_store.h"
-#include <boost/thread.hpp>
+#include "server.h"
 #include <boost/asio.hpp>
+#include <boost/thread.hpp>
 #include <boost/thread/condition.hpp>
 #include <string>
 
 
-class Socket;
 class Log;
+class Socket;
 
 
 /** @class EncodeServer
@@ -65,6 +66,7 @@ private:
        boost::condition _empty_condition;
        bool _verbose;
        int _num_threads;
+       Waker _waker;
 
        struct Broadcast {