Move things around for sanity checking for multithread preparation

This commit is contained in:
gingerBill
2021-07-10 21:29:49 +01:00
parent 0a61d4bf2b
commit ed8a6f872d
9 changed files with 104 additions and 74 deletions
+12 -10
View File
@@ -162,16 +162,18 @@ 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;
isize total_token_count;
isize total_line_count;
gbMutex file_add_mutex;
gbMutex file_decl_mutex;
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;
isize total_token_count;
isize total_line_count;
gbMutex import_mutex;
gbMutex file_add_mutex;
gbMutex file_decl_mutex;
MPMCQueue<ParseFileError> file_error_queue;
};