Skip to content

Use monotonic clock for sleep#753

Merged
alexcrichton merged 5 commits intoWebAssembly:mainfrom
TartanLlama:sy/sleeping
Mar 3, 2026
Merged

Use monotonic clock for sleep#753
alexcrichton merged 5 commits intoWebAssembly:mainfrom
TartanLlama:sy/sleeping

Conversation

@TartanLlama
Copy link
Contributor

Currently, sleep calls clock_nanosleep with CLOCK_REALTIME, which unconditionally returns ENOTSUP on WASIp{2,3}. This PR changes this to use CLOCK_MONOTONIC.

@alexcrichton alexcrichton merged commit bc269eb into WebAssembly:main Mar 3, 2026
29 checks passed
@TartanLlama TartanLlama deleted the sy/sleeping branch March 3, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants