From 657103c4cff8f63cfa617d8c4371fd29df7b41a2 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 1 Sep 2019 20:02:39 +0100 Subject: ThreadPool for the parser --- src/parser.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/parser.hpp') diff --git a/src/parser.hpp b/src/parser.hpp index 26536fe56..56d9b74c7 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -141,6 +141,19 @@ struct Parser { gbMutex file_decl_mutex; }; + +gb_global ThreadPool parser_thread_pool = {}; + +struct ParserWorkerData { + Parser *parser; + ImportedFile imported_file; +}; + + + + + + enum ProcInlining { ProcInlining_none = 0, ProcInlining_inline = 1, -- cgit v1.2.3