aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-18 20:31:34 +0100
committergingerBill <bill@gingerbill.org>2021-08-18 20:31:34 +0100
commit79e98b71d3f5b7da26fa2c0ae7ae25412f37c022 (patch)
tree31ece5107d87cca329bb30afb59ad7c002107cbe /src/parser.hpp
parenta01c946c207ccfabd3636c8db8c54fd08f5f54f9 (diff)
Remove dead code, and add an extra mutex
Diffstat (limited to 'src/parser.hpp')
-rw-r--r--src/parser.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.hpp b/src/parser.hpp
index 579ec5b79..bce451043 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -186,7 +186,6 @@ struct AstPackage {
struct Parser {
String init_fullpath;
StringSet imported_files; // fullpath
- StringMap<AstPackage *> package_map; // Key(package name)
Array<AstPackage *> packages;
Array<ImportedPackage> package_imports;
isize file_to_process_count;
@@ -195,6 +194,7 @@ struct Parser {
BlockingMutex import_mutex;
BlockingMutex file_add_mutex;
BlockingMutex file_decl_mutex;
+ BlockingMutex packages_mutex;
MPMCQueue<ParseFileError> file_error_queue;
};