From eb33c52b8e338b1bccf0d9d26b56d7ef611f6059 Mon Sep 17 00:00:00 2001 From: Joe Kirchoff Date: Wed, 30 Mar 2022 14:15:15 -0700 Subject: Simple file-based compute (#65) --- zencore/workthreadpool.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'zencore/workthreadpool.cpp') diff --git a/zencore/workthreadpool.cpp b/zencore/workthreadpool.cpp index 3fd1d11a6..4291d1581 100644 --- a/zencore/workthreadpool.cpp +++ b/zencore/workthreadpool.cpp @@ -48,6 +48,12 @@ WorkerThreadPool::ScheduleWork(std::function&& Work) m_WorkQueue.Enqueue(new detail::LambdaWork(Work)); } +[[nodiscard]] size_t +WorkerThreadPool::PendingWork() const +{ + return m_WorkQueue.Size(); +} + void WorkerThreadPool::WorkerThreadFunction() { -- cgit v1.2.3