From 4e2efa1051e3eb86ab48d92b3f6ad5896cda5d81 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Fri, 16 May 2025 19:51:36 +0200 Subject: parallel work handle dispatch exception (#400) - Bugfix: Wait for async threads if dispatching of work using ParallellWork throws exception --- src/zenutil/buildstoragecache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/zenutil/buildstoragecache.cpp') diff --git a/src/zenutil/buildstoragecache.cpp b/src/zenutil/buildstoragecache.cpp index f273ac699..88238effd 100644 --- a/src/zenutil/buildstoragecache.cpp +++ b/src/zenutil/buildstoragecache.cpp @@ -338,7 +338,7 @@ public: return {}; } - virtual void Flush(int32_t UpdateInteralMS, std::function&& UpdateCallback) override + virtual void Flush(int32_t UpdateIntervalMS, std::function&& UpdateCallback) override { if (IsFlushed) { @@ -358,7 +358,7 @@ public: intptr_t Remaining = m_PendingBackgroundWorkCount.Remaining(); if (UpdateCallback(Remaining)) { - if (m_PendingBackgroundWorkCount.Wait(UpdateInteralMS)) + if (m_PendingBackgroundWorkCount.Wait(UpdateIntervalMS)) { UpdateCallback(0); return; -- cgit v1.2.3