[libc-commits] [libc] [libc] End a semaphore wait with EINTR when a signal handler runs (PR #236969)
Mike Lothian via libc-commits
libc-commits at lists.llvm.org
Fri Oct 30 08:54:09 PDT 2026
================
@@ -45,7 +50,8 @@ class Futex : public cpp::Atomic<FutexWordType> {
}
LIBC_INLINE ErrorOr<int> wait(FutexWordType expected,
cpp::optional<Timeout> timeout = cpp::nullopt,
- bool is_shared = false) {
+ bool is_shared = false,
+ bool restart_on_signal = true) {
----------------
FireBurn wrote:
I added FutexSigAction { Restart, Exit } for the new argument. I left is_shared as a bool for now, since FutexScope would change about ten callers in raw_mutex, raw_rwlock, CndVar, thread and the tests, none of which this PR touches. Happy to do that as a follow-up PR if you want it
https://github.com/llvm/llvm-project/pull/236969
More information about the libc-commits
mailing list