Skip to content

Commit

Permalink
Refs 20862: Apply second rev
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
  • Loading branch information
Mario-DL committed May 6, 2024
1 parent 549c96a commit 2d6fa2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
14 changes: 3 additions & 11 deletions src/cpp/utils/threading/threading_empty.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
namespace eprosima {

void set_name_to_current_thread(
char*, /* thread_name_buffer */
std::array<char, 16>& /* thread_name_buffer */,
const char* /* name */)
{
}

void set_name_to_current_thread(
char*, /* thread_name_buffer */
std::array<char, 16>& /* thread_name_buffer */,
const char* /* fmt */,
uint32_t /* arg */)
{
Expand All @@ -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<char, 16>& /* thread_name_buffer */,
const char* /* fmt */,
uint32_t /* arg1 */,
uint32_t /* arg2 */)
Expand Down
4 changes: 2 additions & 2 deletions src/cpp/utils/threading/threading_win32.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -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() << "'");
}
}
}
Expand All @@ -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() << "'");
}
}
}
Expand Down

0 comments on commit 2d6fa2f

Please sign in to comment.