diff options
| author | gingerBill <bill@gingerbill.org> | 2023-01-16 18:31:40 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-01-16 18:31:40 +0000 |
| commit | edb23db2ae519627e0d67d482764b01488e78b4e (patch) | |
| tree | a2f78ad992d09da571bd42586340bd1039b14904 /src/parser.hpp | |
| parent | 0b01cfd85300e1c37579dcd5c7787bdf57757a36 (diff) | |
Fix potential race condition when determining the package name
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 552e9bfb5..5e1878cf2 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -175,6 +175,7 @@ struct AstPackage { BlockingMutex files_mutex; BlockingMutex foreign_files_mutex; BlockingMutex type_and_value_mutex; + BlockingMutex name_mutex; // NOTE(bill): This must be a MPMCQueue MPMCQueue<AstPackageExportedEntity> exported_entity_queue; |