Skip to content

Commit

Permalink
Never yield when setting thread state of other threads
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed May 8, 2023
1 parent b74968e commit 737786b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/pika/threading_base/src/set_thread_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ namespace pika::threads::detail {
else
{
pika::execution::this_thread::detail::yield_k(
k, "pika::threads::detail::set_thread_state");
k % 16, "pika::threads::detail::set_thread_state");
++k;

// NOLINTNEXTLINE(bugprone-branch-clone)
Expand Down

0 comments on commit 737786b

Please sign in to comment.