Skip to content

Implement I/O timeouts that specify the REALTIME clock.#4777

Merged
sunfishcode merged 1 commit into
bytecodealliance:mainfrom
sunfishcode:sunfishcode/poll-timeout
Aug 25, 2022
Merged

Implement I/O timeouts that specify the REALTIME clock.#4777
sunfishcode merged 1 commit into
bytecodealliance:mainfrom
sunfishcode:sunfishcode/poll-timeout

Conversation

@sunfishcode
Copy link
Copy Markdown
Member

POSIX specifies that functions like nanosleep use the REALTIME clock,
so allow WASI poll_oneoff calls to use the REALTIME clock, at least
for non-absolute intervals. POSIX specifies that the timeouts should not
be affected by subsequent clock_settime calls, so they behave the same
way as MONOTONIC clock requests, so we can implement them as monotonic
requests.

POSIX specifies that functions like `nanosleep` use the REALTIME clock,
so allow WASI `poll_oneoff` calls to use the REALTIME clock, at least
for non-absolute intervals. POSIX specifies that the timeouts should not
be affected by subsequent `clock_settime` calls, so they behave the same
way as MONOTONIC clock requests, so we can implement them as monotonic
requests.
@github-actions github-actions Bot added the wasi Issues pertaining to WASI label Aug 24, 2022
@github-actions
Copy link
Copy Markdown

Subscribe to Label Action

cc @kubkon

Details This issue or pull request has been labeled: "wasi"

Thus the following users have been cc'd because of the following labels:

  • kubkon: wasi

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasi Issues pertaining to WASI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants