When compiling with GCC using -Winline the compiler warns that the call to the destructor will not be inlined (I use ThreadPool in multiple places):
ThreadPool/ThreadPool.h:87:8: warning: inlining failed in call to
‘ThreadPool::~ThreadPool() noexcept’: call is unlikely and code size would grow [-Winline]
inline ThreadPool::~ThreadPool()
Besides, there is no reason in inline here. Removing it.
When compiling with GCC using
-Winline
the compiler warns that the call to the destructor will not be inlined (I useThreadPool
in multiple places):Besides, there is no reason in
inline
here. Removing it.