Even though pthreads doesn't support this, there are various alternative APIs that use this. For example, uv_cond_timedwait() accepts a relative timeout. So does Rust's std::sync::Condvar::wait_timeout(). Though I personally think that relative timeouts are bad (due to imprecision for repeated operations), it does seem that people want this. Extend the existing futex functions to keep track of whether an absolute timeout is used in a boolean flag. MFC after: 1 month |
||
---|---|---|
.. | ||
cloudabi32_fd.c | ||
cloudabi32_module.c | ||
cloudabi32_poll.c | ||
cloudabi32_proto.h | ||
cloudabi32_sock.c | ||
cloudabi32_syscall.h | ||
cloudabi32_syscalls.c | ||
cloudabi32_sysent.c | ||
cloudabi32_systrace_args.c | ||
cloudabi32_thread.c | ||
cloudabi32_util.h | ||
Makefile | ||
syscalls.conf |