diff --git a/src/cpp/utils/threading/threading_empty.ipp b/src/cpp/utils/threading/threading_empty.ipp index 30edd7fb260..295412b523c 100644 --- a/src/cpp/utils/threading/threading_empty.ipp +++ b/src/cpp/utils/threading/threading_empty.ipp @@ -15,13 +15,13 @@ namespace eprosima { void set_name_to_current_thread( - char*, /* thread_name_buffer */ + std::array& /* thread_name_buffer */, const char* /* name */) { } void set_name_to_current_thread( - char*, /* thread_name_buffer */ + std::array& /* thread_name_buffer */, const char* /* fmt */, uint32_t /* arg */) { @@ -34,15 +34,7 @@ void set_name_to_current_thread( } void set_name_to_current_thread( - char* /* thread_name_buffer */, - const char* /* fmt */, - uint32_t /* arg1 */, - uint32_t /* arg2 */) -{ -} - -void set_name_to_current_thread( - char* /* thread_name_buffer */, + std::array& /* thread_name_buffer */, const char* /* fmt */, uint32_t /* arg1 */, uint32_t /* arg2 */) diff --git a/src/cpp/utils/threading/threading_win32.ipp b/src/cpp/utils/threading/threading_win32.ipp index 601b7d8de2a..0c8a2f5d5ff 100644 --- a/src/cpp/utils/threading/threading_win32.ipp +++ b/src/cpp/utils/threading/threading_win32.ipp @@ -79,7 +79,7 @@ static void configure_current_thread_priority( { EPROSIMA_LOG_ERROR(SYSTEM, "Problem to set priority of thread with id [" << GetCurrentThreadId() << "," << thread_name << "] to value " << priority << - "."); + ". Error '" << GetLastError() << "'"); } } } @@ -94,7 +94,7 @@ static void configure_current_thread_affinity( { EPROSIMA_LOG_ERROR(SYSTEM, "Problem to set affinity of thread with id [" << GetCurrentThreadId() << "," << thread_name << "] to value " << affinity_mask << - "."); + ". Error '" << GetLastError() << "'"); } } }