mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-12 19:19:53 -04:00
Reduce mutex usage and convert things to queues from arrays
This commit is contained in:
1 parent
31c7afce1b
commit
7a9b7af078
5 files changed
+204
-118
No files matched your search
+1
-3
@@ -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