mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-02 19:22:33 +00:00
Reduce mutex usage and convert things to queues from arrays
This commit is contained in:
@@ -901,9 +901,7 @@ void check_global_variable_decl(CheckerContext *ctx, Entity *&e, Ast *type_expr,
|
||||
}
|
||||
|
||||
if (ac.require_declaration) {
|
||||
gb_mutex_lock(&ctx->info->entity_mutex);
|
||||
array_add(&ctx->info->required_global_variables, e);
|
||||
gb_mutex_unlock(&ctx->info->entity_mutex);
|
||||
mpmc_enqueue(&ctx->info->required_global_variable_queue, e);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user