aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-16 18:31:40 +0000
committergingerBill <bill@gingerbill.org>2023-01-16 18:31:40 +0000
commitedb23db2ae519627e0d67d482764b01488e78b4e (patch)
treea2f78ad992d09da571bd42586340bd1039b14904 /src/parser.hpp
parent0b01cfd85300e1c37579dcd5c7787bdf57757a36 (diff)
Fix potential race condition when determining the package name
Diffstat (limited to 'src/parser.hpp')
-rw-r--r--src/parser.hpp1
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;