aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-01-10 14:50:28 +0000
committergingerBill <bill@gingerbill.org>2022-01-10 14:50:28 +0000
commit7cc265e14ce3ec08a5908d31441000bdcb4ac645 (patch)
tree690cd607687a3879acaabe48d072dc5f358c59d4 /src/check_decl.cpp
parent6f3e450c502a8d05653ffcd98c74e2e933a34d1d (diff)
Add mutex guards for signature scopes
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index 42f68203c..55ad67abf 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -1286,7 +1286,7 @@ void check_proc_body(CheckerContext *ctx_, Token token, DeclInfo *decl, Type *ty
using_entities.allocator = heap_allocator();
defer (array_free(&using_entities));
- {
+ MUTEX_GUARD_BLOCK(ctx->scope->mutex) {
if (type->Proc.param_count > 0) {
TypeTuple *params = &type->Proc.params->Tuple;
for_array(i, params->variables) {