Skip to content

Commit

Permalink
removed reserved thread count
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanPhilippeKernel committed Feb 18, 2024
1 parent 81743c5 commit ffc6aa7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ZEngine/include/ZEngine/Helpers/ThreadPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ namespace ZEngine::Helpers
ThreadPool(size_t maxThreadCount = std::thread::hardware_concurrency())
: m_maxThreadCount(maxThreadCount), m_taskQueue(std::make_shared<ThreadSafeQueue<std::function<void()>>>())
{
m_maxThreadCount -= m_reservedThreadsCount;
}

~ThreadPool()
Expand All @@ -39,7 +38,6 @@ namespace ZEngine::Helpers
private:
size_t m_maxThreadCount;
size_t m_currentThreadCount{0};
uint32_t m_reservedThreadsCount{4};
std::mutex m_mutex;
std::shared_ptr<ThreadSafeQueue<std::function<void()>>> m_taskQueue;

Expand Down

0 comments on commit ffc6aa7

Please sign in to comment.