X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=image_input.h;h=659404ea7c5954a191aeda2faf72e3ef774544e7;hb=7017a3bd997cbf5d7c327187afecfecd610bf24d;hp=fbda72de6c36ddf69f660db77b78024afb5fc8cb;hpb=8693cbdedf4c989ccbb1b31fb08e42c7a53c52b1;p=nageru diff --git a/image_input.h b/image_input.h index fbda72d..659404e 100644 --- a/image_input.h +++ b/image_input.h @@ -20,7 +20,8 @@ public: std::string effect_type_id() const override { return "ImageInput"; } void set_gl_state(GLuint glsl_program_num, const std::string& prefix, unsigned *sampler_num) override; - + static void shutdown_updaters(); + private: struct Image { std::unique_ptr pixels; @@ -36,6 +37,7 @@ private: static std::mutex all_images_lock; static std::map> all_images; static std::map update_threads; + static volatile bool threads_should_quit; }; #endif // !defined(_IMAGE_INPUT_H)