From 0051cd12e22d03b5442df98d82d9b8a586362082 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 16 Aug 2021 16:30:49 +0100 Subject: Make flags atomic for `Entity` and `Type` --- src/types.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/types.cpp') 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 cached_size; + std::atomic cached_align; + std::atomic flags; // TypeFlag bool failure; }; -- cgit v1.2.3