Skip to content

Commit

Permalink
Fix TSAN warning in MetalHandles (#8262)
Browse files Browse the repository at this point in the history
  • Loading branch information
bejado authored Nov 14, 2024
1 parent 8aa9c4d commit 8e5ba51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filament/backend/src/metal/MetalHandles.h
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ struct MetalTimerQuery : public HwTimerQuery {

struct Status {
std::atomic<bool> available {false};
uint64_t elapsed {0}; // only valid if available is true
std::atomic<uint64_t> elapsed {0}; // only valid if available is true
};

std::shared_ptr<Status> status;
Expand Down

0 comments on commit 8e5ba51

Please sign in to comment.