#ifndef DCPOMATIC_SIGNAL_MANAGER_H
#define DCPOMATIC_SIGNAL_MANAGER_H
-#include <boost/bind.hpp>
#include <boost/asio.hpp>
#include <boost/thread.hpp>
/** 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() */
}
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 */