]> git.sesse.net Git - casparcg/blobdiff - common/polling_filesystem_monitor.h
Created workaround for time scale bug in Decklink 10.7 driver causing CasparCG to...
[casparcg] / common / polling_filesystem_monitor.h
index 10afbaa2382b511a97a8fc8ea7e928e6ab4ebc1d..7af006aed631c08911414ceb1973445cf4b6ffc6 100644 (file)
@@ -23,6 +23,8 @@
 
 #include "filesystem_monitor.h"
 
+#include <boost/asio.hpp>
+
 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<boost::asio::io_service> 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> impl_;
 };
 
-}
\ No newline at end of file
+}