[libcxx-commits] [libcxx] [libc++] remove yield from timed_backoff_policy (PR #171036)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Dec 12 10:19:28 PST 2025


================
@@ -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))
----------------
ldionne wrote:

As discussed, let's instead try to use the underlying system's API to implement the timed wait in semaphore. That should supersede the need for this patch.

https://github.com/llvm/llvm-project/pull/171036


More information about the libcxx-commits mailing list