From 0051cd12e22d03b5442df98d82d9b8a586362082 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 16 Aug 2021 16:30:49 +0100 Subject: Make flags atomic for `Entity` and `Type` --- src/entity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/entity.cpp') diff --git a/src/entity.cpp b/src/entity.cpp index e7b888365..fb65bc3a8 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -115,8 +115,8 @@ enum ProcedureOptimizationMode : u32 { struct Entity { EntityKind kind; u64 id; - u64 flags; - EntityState state; + std::atomic flags; + std::atomic state; Token token; Scope * scope; Type * type; -- cgit v1.2.3