From 2d6fa2f006c7255898e4c0eeca450357360f28de Mon Sep 17 00:00:00 2001 From: Mario Dominguez Date: Mon, 6 May 2024 17:08:45 +0200 Subject: [PATCH] Refs 20862: Apply second rev Signed-off-by: Mario Dominguez --- src/cpp/utils/threading/threading_empty.ipp | 14 +++----------- src/cpp/utils/threading/threading_win32.ipp | 4 ++-- 2 files changed, 5 insertions(+), 13 deletions(-) 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() << "'"); } } }