X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fimage_input.h;h=ac3c519147d6d4d6f66ad4e2baffaffaabdf7a69;hb=c660c05323237bf118e6844c71703bf96be70d32;hp=6a75df48c9f15ccdccfa26fe4a40b70bf49b05dd;hpb=f677a047d02e4d21491f2905bd220557472e1960;p=nageru diff --git a/nageru/image_input.h b/nageru/image_input.h index 6a75df4..ac3c519 100644 --- a/nageru/image_input.h +++ b/nageru/image_input.h @@ -36,10 +36,11 @@ private: static std::shared_ptr load_image(const std::string &filename, const std::string &pathname); static std::shared_ptr load_image_raw(const std::string &pathname); - static void update_thread_func(const std::string &filename, const std::string &pathname, const timespec &first_modified); + static void update_thread_func(); static std::mutex all_images_lock; - static std::map> all_images; - static std::map update_threads; + static std::map> all_images; // Under all_images_lock. + static bool update_thread_started; // Under all_images_lock. + static std::thread update_thread; // Under all_images_lock. static std::mutex threads_should_quit_mu; static bool threads_should_quit; // Under threads_should_quit_mu.