sunfishcode opened PR #2753 from sunfishcode/sleep to main:
Add support for
poll_oneoffcalls which just sleep on a relative
timeout. This fixes a bug handling code compiled with WASI libc'ssleep
family of functions, which callpoll_oneoffwith aCLOCK_REALTIME
timer, which wasn't previously implemented.<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
sunfishcode requested pchickey for a review on PR #2753.
sunfishcode updated PR #2753 from sunfishcode/sleep to main.
pchickey submitted PR Review.
pchickey submitted PR Review.
pchickey created PR Review Comment:
This special case is a good idea, but i'd like for the
thread::sleepcall to instead be dispatched intoself.sched.sleepso that wasi-common consumers can control that implementation by either using the default wasi-cap-std-sync impls or creating their own.
sunfishcode updated PR #2753 from sunfishcode/sleep to main.
sunfishcode submitted PR Review.
sunfishcode created PR Review Comment:
Sounds good; I've now added a sleep function to
WasiSchedand added impls for it.
pchickey submitted PR Review.
sunfishcode merged PR #2753.
Last updated: Dec 06 2025 at 06:05 UTC