gentoo/dev-cpp/lucene++/files/lucene++-3.0.9-threadpool-shutdown.patch
Holger Hoffstätte a69277266d
dev-cpp/lucene++: more test fixes
- fix thread pool shutdown
- reenable previously excluded tests
- fix ODR violations in test mocks, unfilter LTO
- properly handle deprecated boost-bind version
- remove precompiled header support

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/739
Merges: https://codeberg.org/gentoo/gentoo/pulls/739
Signed-off-by: Sam James <sam@gentoo.org>
2026-04-26 20:51:09 +01:00

15 lines
395 B
Diff

https://github.com/luceneplusplus/LucenePlusPlus/pull/227
diff --git a/src/core/util/ThreadPool.cpp b/src/core/util/ThreadPool.cpp
index ee6640b..38f4170 100644
--- a/src/core/util/ThreadPool.cpp
+++ b/src/core/util/ThreadPool.cpp
@@ -30,6 +30,7 @@ ThreadPool::ThreadPool()
}
ThreadPool::~ThreadPool() {
+ io_context.stop();
threadGroup.join_all(); // wait for all competition
}