X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=common%2Fpolling_filesystem_monitor.h;h=7af006aed631c08911414ceb1973445cf4b6ffc6;hb=1dd7f451acbf1cac0f44679990e304bcfe29f631;hp=10afbaa2382b511a97a8fc8ea7e928e6ab4ebc1d;hpb=ad66cff9a6a3d35e4765c9ab4289ed0976d52c7b;p=casparcg diff --git a/common/polling_filesystem_monitor.h b/common/polling_filesystem_monitor.h index 10afbaa23..7af006aed 100644 --- a/common/polling_filesystem_monitor.h +++ b/common/polling_filesystem_monitor.h @@ -23,6 +23,8 @@ #include "filesystem_monitor.h" +#include + namespace caspar { /** @@ -38,14 +40,18 @@ public: /** * Constructor. * + * @param scheduler The io_service that will be used for + * scheduling periodic scans. * @param scan_interval_millis The number of milliseconds between each * scheduled scan. Lower values lowers the reaction * time but causes more I/O. */ - polling_filesystem_monitor_factory(int scan_interval_millis = 5000); + polling_filesystem_monitor_factory( + std::shared_ptr scheduler, + int scan_interval_millis = 5000); virtual ~polling_filesystem_monitor_factory(); virtual filesystem_monitor::ptr create( - const boost::filesystem::wpath& folder_to_watch, + const boost::filesystem::path& folder_to_watch, filesystem_event events_of_interest_mask, bool report_already_existing, const filesystem_monitor_handler& handler, @@ -55,4 +61,4 @@ private: spl::unique_ptr impl_; }; -} \ No newline at end of file +}