[libcxx-commits] [libcxx] [libc++] remove yield from timed_backoff_policy (PR #171036)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Dec 7 07:05:50 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Hui (huixie90)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/171036.diff
1 Files Affected:
- (modified) libcxx/include/__thread/timed_backoff_policy.h (-2)
``````````diff
diff --git a/libcxx/include/__thread/timed_backoff_policy.h b/libcxx/include/__thread/timed_backoff_policy.h
index 35a72eb61f77e..c6b6e4bbf9142 100644
--- a/libcxx/include/__thread/timed_backoff_policy.h
+++ b/libcxx/include/__thread/timed_backoff_policy.h
@@ -29,8 +29,6 @@ struct __libcpp_timed_backoff_policy {
__libcpp_thread_sleep_for(chrono::milliseconds(8));
else if (__elapsed > chrono::microseconds(64))
__libcpp_thread_sleep_for(__elapsed / 2);
- else if (__elapsed > chrono::microseconds(4))
- __libcpp_thread_yield();
else {
} // poll
return false;
``````````
</details>
https://github.com/llvm/llvm-project/pull/171036
More information about the libcxx-commits
mailing list