ThreadPool for the parser

This commit is contained in:
gingerBill
2019-09-01 20:02:39 +01:00
parent b9d3129fb3
commit 657103c4cf
7 changed files with 86 additions and 218 deletions
+13
View File
@@ -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,