Commit 611df2e1 authored by Elvin Sindrilaru's avatar Elvin Sindrilaru

COMMON: Use static logging function in thread pool to avoid deadlock

parent bdacfd41
Pipeline #467207 passed with stages
in 29 minutes 56 seconds
......@@ -36,7 +36,7 @@ EOSCOMMONNAMESPACE_BEGIN
//------------------------------------------------------------------------------------
//! @brief Dynamically scaling pool of threads which will asynchronously execute tasks
//------------------------------------------------------------------------------------
class ThreadPool: public eos::common::LogId
class ThreadPool
{
public:
//----------------------------------------------------------------------------------
......@@ -99,7 +99,7 @@ public:
while (true)
{
eos_debug("id=%s, queue_size=%llu, thread_pool_size=%llu",
eos_static_debug("id=%s, queue_size=%llu, thread_pool_size=%llu",
mId.c_str(), mTasks.size(), mThreadPool.size());
if (signalFuture.valid()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment