summaryrefslogtreecommitdiff
path: root/include/mbgl/platform/default/thread_pool.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/platform/default/thread_pool.hpp')
-rw-r--r--include/mbgl/platform/default/thread_pool.hpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/include/mbgl/platform/default/thread_pool.hpp b/include/mbgl/platform/default/thread_pool.hpp
deleted file mode 100644
index a14d16d771..0000000000
--- a/include/mbgl/platform/default/thread_pool.hpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#pragma once
-
-#include <mbgl/actor/scheduler.hpp>
-
-#include <condition_variable>
-#include <mutex>
-#include <queue>
-#include <thread>
-
-namespace mbgl {
-
-class ThreadPool : public Scheduler {
-public:
- ThreadPool(std::size_t count);
- ~ThreadPool() override;
-
- void schedule(std::weak_ptr<Mailbox>) override;
-
-private:
- std::vector<std::thread> threads;
- std::queue<std::weak_ptr<Mailbox>> queue;
- std::mutex mutex;
- std::condition_variable cv;
- bool terminate { false };
-};
-
-} // namespace mbgl