summarylogtreecommitdiffstats
path: root/fix_crash.patch
blob: e59d488656742eb3307250e6041e33c68a3d3903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/src/align/global_ranking/extend.cpp
+++ b/src/align/global_ranking/extend.cpp
@@ -207,6 +207,10 @@ void extend(Search::Config& cfg, Consumer& out) {
 	timer.go("Computing alignments");
 	OutputWriter writer{ &out };
 	output_sink.reset(new ReorderQueue<TextBuffer*, OutputWriter>(0, writer, !config.no_reorder));
+	if (!cfg.thread_pool) {
+		cfg.thread_pool.reset(new ThreadPool());
+		cfg.thread_pool->run(1);
+	}
 
 	std::atomic<BlockId> next_query(0);
 	const BlockId query_count = cfg.query->seqs().size() / align_mode.query_contexts;