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

+3 -3
View File
@@ -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;
};