[build] rework platform/default directory and add -files.txt for vendored libs

This commit is contained in:
Konstantin Käfer
2018-12-13 18:45:29 +01:00
parent c2a4a8822c
commit 1d8235f5b8
117 changed files with 6463 additions and 758 deletions

View File

@@ -0,0 +1,14 @@
#include <mbgl/util/shared_thread_pool.hpp>
namespace mbgl {
std::shared_ptr<ThreadPool> sharedThreadPool() {
static std::weak_ptr<ThreadPool> weak;
auto pool = weak.lock();
if (!pool) {
weak = pool = std::make_shared<ThreadPool>(4);
}
return pool;
}
} // namespace mbgl