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

@@ -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;
};