From 1f25f60a685d50a178b6d0bc571ca5c2f476a984 Mon Sep 17 00:00:00 2001 From: nakst <> Date: Sun, 22 Aug 2021 21:13:41 +0100 Subject: Rewrite thread_pool.cpp --- src/parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index 2c29f651a..9d9d6120f 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -5685,8 +5685,7 @@ ParseFileError parse_packages(Parser *p, String init_filename) { } } - thread_pool_start(&parser_thread_pool); - thread_pool_wait_to_process(&parser_thread_pool); + thread_pool_wait(&parser_thread_pool); for (ParseFileError err = ParseFile_None; mpmc_dequeue(&p->file_error_queue, &err); /**/) { if (err != ParseFile_None) { -- cgit v1.2.3