diff options
| author | gingerBill <bill@gingerbill.org> | 2019-09-01 20:02:39 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-09-01 20:02:39 +0100 |
| commit | 657103c4cff8f63cfa617d8c4371fd29df7b41a2 (patch) | |
| tree | b902045f4e9a88a0e92cac43a19939ac0741fb46 /src/parser.hpp | |
| parent | b9d3129fb3a4ba7ef49cea69d086a7f705819f2e (diff) | |
ThreadPool for the parser
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
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, |