diff options
| author | gingerBill <bill@gingerbill.org> | 2022-01-10 14:50:28 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-01-10 14:50:28 +0000 |
| commit | 7cc265e14ce3ec08a5908d31441000bdcb4ac645 (patch) | |
| tree | 690cd607687a3879acaabe48d072dc5f358c59d4 /src/check_stmt.cpp | |
| parent | 6f3e450c502a8d05653ffcd98c74e2e933a34d1d (diff) | |
Add mutex guards for signature scopes
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 396388629..94b7561c7 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -607,7 +607,7 @@ bool check_using_stmt_entity(CheckerContext *ctx, AstUsingStmt *us, Ast *expr, b case Entity_ImportName: { Scope *scope = e->ImportName.scope; - for_array(i, scope->elements.entries) { + MUTEX_GUARD_BLOCK(scope->mutex) for_array(i, scope->elements.entries) { String name = scope->elements.entries[i].key.string; Entity *decl = scope->elements.entries[i].value; if (!is_entity_exported(decl)) continue; |