X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=common%2Fpolling_filesystem_monitor.h;h=7af006aed631c08911414ceb1973445cf4b6ffc6;hb=ceffb3558efafb706af50c04b4b150250e2963f0;hp=35eb1b9f5f755a030353e213157754ab6992d59d;hpb=0eecce98e60a75750cc94d660a22500563d245ad;p=casparcg diff --git a/common/polling_filesystem_monitor.h b/common/polling_filesystem_monitor.h index 35eb1b9f5..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,11 +40,15 @@ 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::path& folder_to_watch,