Make flags atomic for Entity and Type

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

No files matched your search

+2 -2
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;