Skip to content

Commit

Permalink
Mark short thread name as unused when pthread_setname_np isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Nov 11, 2024
1 parent 87205f5 commit 6faa0ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/pika/thread_support/src/thread_name.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <pika/config.hpp>
#include <pika/thread_support/thread_name.hpp>
#include <pika/type_support/unused.hpp>

#include <fmt/format.h>

Expand Down Expand Up @@ -85,7 +86,8 @@ namespace pika::detail {
"attempting to set name \"{}\" for thread {}",
rc, pthread_name, pthread_self()));
}

# else
PIKA_UNUSED(short_name);
# endif
}
#endif
Expand Down

0 comments on commit 6faa0ff

Please sign in to comment.