From 5835011d0f8d4526a6d51a676c54dbadf5a6fb3e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 9 Oct 2021 15:50:09 +0200 Subject: [PATCH] Allow serialized zone validation. --- client/TracyProfiler.cpp | 5 +++++ common/TracyQueue.hpp | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 358a1fba..bc1eeeef 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -2438,6 +2438,11 @@ Profiler::DequeueStatus Profiler::DequeueSerial() ThreadCtxCheckSerial( zoneValueThread ); break; } + case QueueType::ZoneValidation: + { + ThreadCtxCheckSerial( zoneValidationThread ); + break; + } #endif default: assert( false ); diff --git a/common/TracyQueue.hpp b/common/TracyQueue.hpp index 0d3ca4a6..0150264c 100644 --- a/common/TracyQueue.hpp +++ b/common/TracyQueue.hpp @@ -148,6 +148,11 @@ struct QueueZoneValidation uint32_t id; }; +struct QueueZoneValidationThread +{ + uint32_t thread; +}; + struct QueueZoneColor { uint8_t r; @@ -560,6 +565,7 @@ struct QueueItem QueueZoneEnd zoneEnd; QueueZoneEndThread zoneEndThread; QueueZoneValidation zoneValidation; + QueueZoneValidationThread zoneValidationThread; QueueZoneColor zoneColor; QueueZoneColorThread zoneColorThread; QueueZoneValue zoneValue;