[libcxx-commits] [PATCH] D68480: Implementation of C++20's P1135R6 for libcxx

Valery Mironov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 14 12:02:14 PDT 2022


MBkkt added inline comments.
Herald added a project: All.


================
Comment at: libcxx/src/atomic.cpp:38
+    static constexpr timespec __timeout = { 2, 0 };
+    syscall(SYS_futex, __ptr, FUTEX_WAIT_PRIVATE, __val, &__timeout, 0, 0);
+}
----------------
Why do you use timed wait here?
It's strange, and also different with macos(ulock) behavior 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68480/new/

https://reviews.llvm.org/D68480



More information about the libcxx-commits mailing list