diff --git a/include/thread_pool/thread_pool_options.hpp b/include/thread_pool/thread_pool_options.hpp index 88b07f63..c1cde526 100644 --- a/include/thread_pool/thread_pool_options.hpp +++ b/include/thread_pool/thread_pool_options.hpp @@ -47,28 +47,28 @@ class ThreadPoolOptions /// Implementation -ThreadPoolOptions::ThreadPoolOptions() +inline ThreadPoolOptions::ThreadPoolOptions() : m_thread_count(std::max(1u, std::thread::hardware_concurrency())) , m_queue_size(1024u) { } -void ThreadPoolOptions::setThreadCount(size_t count) +inline void ThreadPoolOptions::setThreadCount(size_t count) { m_thread_count = std::max(1u, count); } -void ThreadPoolOptions::setQueueSize(size_t size) +inline void ThreadPoolOptions::setQueueSize(size_t size) { m_queue_size = std::max(1u, size); } -size_t ThreadPoolOptions::threadCount() const +inline size_t ThreadPoolOptions::threadCount() const { return m_thread_count; } -size_t ThreadPoolOptions::queueSize() const +inline size_t ThreadPoolOptions::queueSize() const { return m_queue_size; }