diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-26 21:22:30 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-26 21:22:30 +0100 |
| commit | ad3a3547d61b3576a9b0841510669d0f102f9ccf (patch) | |
| tree | 2e2db735e388c803421d946b4fff9b889127f1ad /src/parser.hpp | |
| parent | aba14c43ac3faa4d4f323ac5da9f09fcb77c31c0 (diff) | |
Unify thread pool logic across the rest of the compiler, using a global thread pool
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 082415d16..ddcb27322 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -191,6 +191,7 @@ struct Parser { isize file_to_process_count; isize total_token_count; isize total_line_count; + BlockingMutex wait_mutex; BlockingMutex import_mutex; BlockingMutex file_add_mutex; BlockingMutex file_decl_mutex; @@ -198,9 +199,6 @@ struct Parser { MPMCQueue<ParseFileError> file_error_queue; }; - -gb_global ThreadPool parser_thread_pool = {}; - struct ParserWorkerData { Parser *parser; ImportedFile imported_file; |