mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-11 07:17:48 -04:00
Minimize contention on the deps for decls
This commit is contained in:
1 parent
d6c54148d9
commit
e97bf2ef35
4 files changed
+18
-1
No files matched your search
@@ -9455,6 +9455,9 @@ gb_internal ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast
|
||||
|
||||
pl->decl = decl;
|
||||
check_procedure_later(ctx.checker, ctx.file, empty_token, decl, type, pl->body, pl->tags);
|
||||
mutex_lock(&ctx.checker->nested_proc_lits_mutex);
|
||||
array_add(&ctx.checker->nested_proc_lits, decl);
|
||||
mutex_unlock(&ctx.checker->nested_proc_lits_mutex);
|
||||
}
|
||||
check_close_scope(&ctx);
|
||||
|
||||
|
||||
Reference in new issue
Block a user