From 5d37d08cf8283324322a379e3470244acc3123bd Mon Sep 17 00:00:00 2001 From: Powei Feng Date: Tue, 1 Aug 2023 16:29:27 -0700 Subject: [PATCH] vulkan: fix TSAN in readpixels (#7023) --- filament/backend/src/vulkan/VulkanReadPixels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filament/backend/src/vulkan/VulkanReadPixels.cpp b/filament/backend/src/vulkan/VulkanReadPixels.cpp index 7940056964f..e299d206597 100644 --- a/filament/backend/src/vulkan/VulkanReadPixels.cpp +++ b/filament/backend/src/vulkan/VulkanReadPixels.cpp @@ -57,8 +57,8 @@ void TaskHandler::drain() { { std::unique_lock lock(syncPointMutex); done = true; + syncCondition.notify_one(); } - syncCondition.notify_one(); }); std::unique_lock lock(syncPointMutex);