diff options
Diffstat (limited to 'src/lib/utils/thread_utils/thread_pool.cpp')
-rw-r--r-- | src/lib/utils/thread_utils/thread_pool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/thread_utils/thread_pool.cpp b/src/lib/utils/thread_utils/thread_pool.cpp index ce326fdc0..9d262cff6 100644 --- a/src/lib/utils/thread_utils/thread_pool.cpp +++ b/src/lib/utils/thread_utils/thread_pool.cpp @@ -92,7 +92,7 @@ void Thread_Pool::shutdown() m_workers.clear(); } -void Thread_Pool::queue_thunk(std::function<void ()> fn) +void Thread_Pool::queue_thunk(const std::function<void ()>& fn) { std::unique_lock<std::mutex> lock(m_mutex); |