Make flags atomic for Entity and Type

This commit is contained in:
gingerBill
2021-08-16 16:30:49 +01:00
parent df159dbae7
commit 0051cd12e2
3 changed files with 6 additions and 6 deletions

View File

@@ -115,8 +115,8 @@ enum ProcedureOptimizationMode : u32 {
struct Entity {
EntityKind kind;
u64 id;
u64 flags;
EntityState state;
std::atomic<u64> flags;
std::atomic<EntityState> state;
Token token;
Scope * scope;
Type * type;