From 620123fbd6c18dc48a25cc735565f6d8d85f8639 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 26 Oct 2020 09:48:25 +0100 Subject: Matrix: add room tags Fix pinned events that are added after starting QuickMedia (before this change it adds all elements again to the list). Add /me command. Other fixes... --- include/AsyncImageLoader.hpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'include/AsyncImageLoader.hpp') diff --git a/include/AsyncImageLoader.hpp b/include/AsyncImageLoader.hpp index 3189565..c1c2e11 100644 --- a/include/AsyncImageLoader.hpp +++ b/include/AsyncImageLoader.hpp @@ -1,16 +1,13 @@ #pragma once #include "../include/Storage.hpp" +#include "../include/MessageQueue.hpp" #include #include #include #include -#include #include #include -#include -#include -#include namespace QuickMedia { enum class LoadingState { @@ -55,9 +52,6 @@ namespace QuickMedia { // TODO: Use curl single-threaded multi-download feature instead std::thread download_image_thread[NUM_IMAGE_LOAD_THREADS]; std::thread load_image_thread; - std::mutex load_image_mutex; - std::condition_variable load_image_cv; - std::deque images_to_load; - bool running = true; + MessageQueue image_load_queue; }; } \ No newline at end of file -- cgit v1.2.3