mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 09:54:45 +00:00
Minimize contention on the deps for decls
This commit is contained in:
@@ -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