diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-11-22 13:16:21 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-11-22 20:58:51 +0100 |
commit | 3bc79e316e343d59f77811bca4ed6c594431e91c (patch) | |
tree | 2d0b7e5f49e65f905f5dad38d471cb272092e2c8 /include/mbgl/platform | |
parent | 67ed3ae3eb25e5bb0ec2d0369d042438bd9b2c7f (diff) | |
download | qtlocation-mapboxgl-3bc79e316e343d59f77811bca4ed6c594431e91c.tar.gz |
[build] move default ThreadPool implementation to platform/default
Diffstat (limited to 'include/mbgl/platform')
-rw-r--r-- | include/mbgl/platform/default/thread_pool.hpp | 27 |
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 |