From 8e5ba517184fcb5d74d299d6108e1df6eda0a843 Mon Sep 17 00:00:00 2001 From: Ben Doherty Date: Thu, 14 Nov 2024 10:12:53 -0800 Subject: [PATCH] Fix TSAN warning in MetalHandles (#8262) --- filament/backend/src/metal/MetalHandles.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filament/backend/src/metal/MetalHandles.h b/filament/backend/src/metal/MetalHandles.h index 3758de5842a..484e1dba490 100644 --- a/filament/backend/src/metal/MetalHandles.h +++ b/filament/backend/src/metal/MetalHandles.h @@ -438,7 +438,7 @@ struct MetalTimerQuery : public HwTimerQuery { struct Status { std::atomic available {false}; - uint64_t elapsed {0}; // only valid if available is true + std::atomic elapsed {0}; // only valid if available is true }; std::shared_ptr status;