dawn-cmake/src/dawn/platform
Le Hoang Quyen c173a0ea88 Fix TRACE_EVENT wasn't thread safe.
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>
2023-04-06 08:08:00 +00:00
..
tracing Fix TRACE_EVENT wasn't thread safe. 2023-04-06 08:08:00 +00:00
BUILD.gn Convert all dawn includes to use non-system include syntax. 2022-04-19 14:24:04 +00:00
CMakeLists.txt Fix inclusive language presubmit 2022-04-19 22:25:45 +00:00
DawnPlatform.cpp Add dawn version hash to cache keys. 2022-06-24 23:39:49 +00:00
WorkerThread.cpp Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
WorkerThread.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00