Update for small change to libdcp API.
[dcpomatic.git] / src / lib / signal_manager.h
index ae4306e3077ad51ed34f50b65da0bf8edcf461e1..62afacade3139fc965b298887b87c20842ace5d4 100644 (file)
@@ -20,7 +20,6 @@
 #ifndef DCPOMATIC_SIGNAL_MANAGER_H
 #define DCPOMATIC_SIGNAL_MANAGER_H
 
-#include <boost/bind.hpp>
 #include <boost/asio.hpp>
 #include <boost/thread.hpp>
 
@@ -47,8 +46,8 @@ public:
 
        /** Call this in the UI when it is idle */
        size_t ui_idle () {
-               /* This executes any functors that have been post()ed to _service */
-               return _service.poll ();
+               /* This executes one of the functors that has been post()ed to _service */
+               return _service.poll_one ();
        }
 
        /** This should wake the UI and make it call ui_idle() */
@@ -76,7 +75,7 @@ private:
        }
 
        friend class Signaller;
-       
+
        /** A io_service which is used as the conduit for messages */
        boost::asio::io_service _service;
        /** Object required to keep io_service from stopping when it has nothing to do */