summaryrefslogtreecommitdiff
path: root/src/mbgl/util/thread_pool.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/util/thread_pool.hpp')
-rw-r--r--src/mbgl/util/thread_pool.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbgl/util/thread_pool.hpp b/src/mbgl/util/thread_pool.hpp
index e39c1abc73..9791ff9460 100644
--- a/src/mbgl/util/thread_pool.hpp
+++ b/src/mbgl/util/thread_pool.hpp
@@ -48,6 +48,7 @@ public:
~ThreadedScheduler() override {
terminate();
for (auto& thread : threads) {
+ assert(std::this_thread::get_id() != thread.get_id());
thread.join();
}
}