summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-11-22 13:16:21 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-11-22 20:58:51 +0100
commit3bc79e316e343d59f77811bca4ed6c594431e91c (patch)
tree2d0b7e5f49e65f905f5dad38d471cb272092e2c8 /include
parent67ed3ae3eb25e5bb0ec2d0369d042438bd9b2c7f (diff)
downloadqtlocation-mapboxgl-3bc79e316e343d59f77811bca4ed6c594431e91c.tar.gz
[build] move default ThreadPool implementation to platform/default
Diffstat (limited to 'include')
-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