Skip to content

Commit

Permalink
Fix multiple link units
Browse files Browse the repository at this point in the history
  • Loading branch information
inkooboo authored Feb 6, 2018
1 parent 884eb74 commit af95dd8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/thread_pool/thread_pool_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,28 @@ class ThreadPoolOptions

/// Implementation

ThreadPoolOptions::ThreadPoolOptions()
inline ThreadPoolOptions::ThreadPoolOptions()
: m_thread_count(std::max<size_t>(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<size_t>(1u, count);
}

void ThreadPoolOptions::setQueueSize(size_t size)
inline void ThreadPoolOptions::setQueueSize(size_t size)
{
m_queue_size = std::max<size_t>(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;
}
Expand Down

0 comments on commit af95dd8

Please sign in to comment.