aboutsummaryrefslogtreecommitdiff
path: root/zencore
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-03-31 11:32:37 +0200
committerDan Engelbrecht <[email protected]>2022-03-31 11:32:37 +0200
commit7ba7efa5b8f0a28f8ad62da47458fa80415cd9d9 (patch)
tree9c90d2edebc301970bf2b9fb49993211e6e20479 /zencore
parentImproved GC logging (diff)
downloadzen-7ba7efa5b8f0a28f8ad62da47458fa80415cd9d9.tar.xz
zen-7ba7efa5b8f0a28f8ad62da47458fa80415cd9d9.zip
remove WorkerThreadPool::Flush()
Diffstat (limited to 'zencore')
-rw-r--r--zencore/include/zencore/workthreadpool.h1
-rw-r--r--zencore/workthreadpool.cpp9
2 files changed, 0 insertions, 10 deletions
diff --git a/zencore/include/zencore/workthreadpool.h b/zencore/include/zencore/workthreadpool.h
index 85054fca7..0ddc65298 100644
--- a/zencore/include/zencore/workthreadpool.h
+++ b/zencore/include/zencore/workthreadpool.h
@@ -36,7 +36,6 @@ public:
void ScheduleWork(Ref<IWork> Work);
void ScheduleWork(std::function<void()>&& Work);
- void Flush();
[[nodiscard]] size_t PendingWork() const;
private:
diff --git a/zencore/workthreadpool.cpp b/zencore/workthreadpool.cpp
index a6c6bc0f7..4291d1581 100644
--- a/zencore/workthreadpool.cpp
+++ b/zencore/workthreadpool.cpp
@@ -55,15 +55,6 @@ WorkerThreadPool::PendingWork() const
}
void
-WorkerThreadPool::Flush()
-{
- while (m_WorkQueue.Size() > 0)
- {
- Sleep(1);
- }
-}
-
-void
WorkerThreadPool::WorkerThreadFunction()
{
do