mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-01 04:01:26 +00:00
TRACE_EVENT uses INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO and INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO reads and writes to a static variable on multiple threads. Fix by using std::atomic for the static variable. Bug: dawn:1700 Change-Id: I914bb73352e400f0adeafb64518d61099276270d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/123680 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Quyen Le <lehoangquyen@chromium.org>