OpenAPI: Add blocking indexing thread pool option
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user