Skip to content

Commit af95dd8

Browse files
authored
Fix multiple link units
#16
1 parent 884eb74 commit af95dd8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/thread_pool/thread_pool_options.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,28 @@ class ThreadPoolOptions
4747

4848
/// Implementation
4949

50-
ThreadPoolOptions::ThreadPoolOptions()
50+
inline ThreadPoolOptions::ThreadPoolOptions()
5151
: m_thread_count(std::max<size_t>(1u, std::thread::hardware_concurrency()))
5252
, m_queue_size(1024u)
5353
{
5454
}
5555

56-
void ThreadPoolOptions::setThreadCount(size_t count)
56+
inline void ThreadPoolOptions::setThreadCount(size_t count)
5757
{
5858
m_thread_count = std::max<size_t>(1u, count);
5959
}
6060

61-
void ThreadPoolOptions::setQueueSize(size_t size)
61+
inline void ThreadPoolOptions::setQueueSize(size_t size)
6262
{
6363
m_queue_size = std::max<size_t>(1u, size);
6464
}
6565

66-
size_t ThreadPoolOptions::threadCount() const
66+
inline size_t ThreadPoolOptions::threadCount() const
6767
{
6868
return m_thread_count;
6969
}
7070

71-
size_t ThreadPoolOptions::queueSize() const
71+
inline size_t ThreadPoolOptions::queueSize() const
7272
{
7373
return m_queue_size;
7474
}

0 commit comments

Comments
 (0)