Entity * to std::atomic<Entity *> to remove the need for a PtrMap+Mutex

This commit is contained in:
gingerBill
2025-09-19 11:01:41 +01:00
parent 5f76d6ce15
commit 6ce889f4eb
8 changed files with 24 additions and 28 deletions

View File

@@ -2055,8 +2055,8 @@ gb_internal void add_entity_and_decl_info(CheckerContext *c, Ast *identifier, En
add_entity_definition(info, identifier, e);
GB_ASSERT(e->decl_info == nullptr);
e->decl_info = d;
d->entity = e;
e->pkg = c->pkg;
d->entity.store(e);
isize queue_count = -1;
bool is_lazy = false;