summaryrefslogtreecommitdiff
path: root/src/modinfo.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-05-24 14:39:39 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2020-05-24 14:39:39 +0200
commitff4fbbdc5fa5ada01bd5bc3d8f8004279d7cc6b8 (patch)
tree10ed90d03a7942a45513f04c87f12a122e847926 /src/modinfo.h
parent73248d9e4036ad6b9494f678efbc97e919ebfbcf (diff)
Switch from ThreadPool to a simpler thread map for containers.
Diffstat (limited to 'src/modinfo.h')
-rw-r--r--src/modinfo.h31
1 files changed, 0 insertions, 31 deletions
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 <http://www.gnu.org/licenses/>.
#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<ModThread> s_Threads;
-
static QMutex s_Mutex;
static std::map<std::pair<QString, int>, std::vector<unsigned int> > s_ModsByModID;
static int s_NextID;