\r
#include "filesystem_monitor.h"\r
\r
+namespace boost { namespace asio {\r
+ class io_service;\r
+}}\r
+\r
namespace caspar {\r
\r
/**\r
/**\r
* Constructor.\r
*\r
+ * @param scheduler The io_service that will be used for\r
+ * scheduling periodic scans.\r
* @param scan_interval_millis The number of milliseconds between each\r
- * scheduled scan. Lower values lowers the reaction\r
- * time but causes more I/O.\r
+ * scheduled scan. Lower values lowers the\r
+ * reaction time but causes more I/O.\r
*/\r
- polling_filesystem_monitor_factory(int scan_interval_millis = 5000);\r
+ polling_filesystem_monitor_factory(\r
+ std::shared_ptr<boost::asio::io_service> scheduler,\r
+ int scan_interval_millis = 5000);\r
virtual ~polling_filesystem_monitor_factory();\r
virtual filesystem_monitor::ptr create(\r
const boost::filesystem::wpath& folder_to_watch,\r