mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-08 22:01:47 -04:00
Remove use of mutex in single threaded code
This commit is contained in:
1 parent
cae8c1e94f
commit
e4ba786948
2 files changed
+15
-7
No files matched your search
+1
-2
@@ -182,8 +182,7 @@ gb_internal void override_entity_in_scope(Entity *original_entity, Entity *new_e
|
||||
original_entity->type = new_entity->type;
|
||||
original_entity->aliased_of = new_entity;
|
||||
|
||||
Ast *empty_ident = nullptr;
|
||||
original_entity->identifier.compare_exchange_strong(empty_ident, new_entity->identifier);
|
||||
original_entity->identifier.store(new_entity->identifier);
|
||||
|
||||
if (original_entity->identifier.load() != nullptr &&
|
||||
original_entity->identifier.load()->kind == Ast_Ident) {
|
||||
|
||||
Reference in new issue
Block a user