From ff4fbbdc5fa5ada01bd5bc3d8f8004279d7cc6b8 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Sun, 24 May 2020 14:39:39 +0200 Subject: Switch from ThreadPool to a simpler thread map for containers. --- src/modinfo.h | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'src/modinfo.h') diff --git a/src/modinfo.h b/src/modinfo.h index 081f3660..37a2d24d 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -22,7 +22,6 @@ along with Mod Organizer. If not, see . #include "imodinterface.h" #include "versioninfo.h" -#include "envfs.h" class PluginContainer; class QDir; @@ -841,36 +840,6 @@ protected: private: - struct ModThread - { - ModInfo::Ptr ptr; - - std::condition_variable cv; - std::mutex mutex; - bool ready = false; - - void wakeup() - { - { - std::scoped_lock lock(mutex); - ready = true; - } - - cv.notify_one(); - } - - void run() - { - std::unique_lock lock(mutex); - cv.wait(lock, [&] { return ready; }); - - ptr->isValid(); - ready = false; - } - }; - - static env::ThreadPool s_Threads; - static QMutex s_Mutex; static std::map, std::vector > s_ModsByModID; static int s_NextID; -- cgit v1.3.1