aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-16 16:30:49 +0100
committergingerBill <bill@gingerbill.org>2021-08-16 16:30:49 +0100
commit0051cd12e22d03b5442df98d82d9b8a586362082 (patch)
tree904e2b7a51a726e7b8ea4bdf084fd2c24fa5074a /src/entity.cpp
parentdf159dbae73cf983f061a57aee3c6774ce105351 (diff)
Make flags atomic for `Entity` and `Type`
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp4
1 files changed, 2 insertions, 2 deletions
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<u64> flags;
+ std::atomic<EntityState> state;
Token token;
Scope * scope;
Type * type;