OpenAPI: Add blocking indexing thread pool option

This commit is contained in:
2026-04-16 22:56:15 +02:00
parent 1b06ecfad6
commit e4fbaa4440
14 changed files with 98 additions and 14 deletions
@@ -180,11 +180,11 @@ IndexerThread::~IndexerThread() {
Finalize();
}
IndexerThreadPool::IndexerThreadPool(const IndexingSettings &settings, bool blocking)
IndexerThreadPool::IndexerThreadPool(const IndexingSettings &settings)
: worker_busy(settings.GetIndexingThreads(), 0),
worker_free_count(settings.GetIndexingThreads()),
viable_cell_min_spots(settings.GetViableCellMinSpots()),
blocking(blocking) {
blocking(settings.GetBlockingBehavior()) {
for (size_t i = 0; i < settings.GetIndexingThreads(); ++i)
tasks.emplace_back(std::make_unique<IndexerThread>(std::cref(settings), i));
}