aboutsummaryrefslogtreecommitdiff
path: root/src/types.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/types.cpp
parentdf159dbae73cf983f061a57aee3c6774ce105351 (diff)
Make flags atomic for `Entity` and `Type`
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/types.cpp b/src/types.cpp
index f497e9509..fd5bdbc6d 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -306,9 +306,9 @@ struct Type {
};
// NOTE(bill): These need to be at the end to not affect the unionized data
- i64 cached_size;
- i64 cached_align;
- u32 flags; // TypeFlag
+ std::atomic<i64> cached_size;
+ std::atomic<i64> cached_align;
+ std::atomic<u32> flags; // TypeFlag
bool failure;
};