Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the cputime clocks. #197

Merged
merged 2 commits into from
Feb 19, 2020
Merged

Conversation

sunfishcode
Copy link
Member

Remove $process_cputime_id and $thread_cputime_id.

Some implementations will not have one wasm nanoprocess per OS process,
or one wasm thread per OS thread, making it difficult to implement
$process_cputime_id meaningfully. Also, the concept of "cputime"
available in most host environments isn't easy to directly connect to
what we might expect "cputime" to mean for wasm code.

These correspond to CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID
in POSIX, which are optional:

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html

@pchickey
Copy link
Contributor

Please merge with master before merging so that this PR picks up CI checking for docs generation. You'll have to regenerate docs as well (cd tools/witx && cargo run -- repo-docs).

Remove $process_cputime_id and $thread_cputime_id.

Some implementations will not have one wasm nanoprocess per OS process,
or one wasm thread per OS thread, making it difficult to implement
$process_cputime_id meaningfully. Also, the concept of "cputime"
available in most host environments isn't easy to directly connect to
what we might expect "cputime" to mean for wasm code.

These correspond to `CLOCK_PROCESS_CPUTIME_ID` and `CLOCK_THREAD_CPUTIME_ID`
in POSIX, which are optional:

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html
@sunfishcode
Copy link
Member Author

Merged with master and docs auto-generated.

@sunfishcode sunfishcode merged commit 2054cc4 into WebAssembly:master Feb 19, 2020
@sunfishcode sunfishcode deleted the no-cputime branch February 19, 2020 19:03
sunfishcode added a commit to sunfishcode/wasi-test that referenced this pull request Feb 11, 2021
Remove the tests for `CLOCKID_PROCESS_CPUTIME_ID` and
`CLOCKID_THREAD_CPUTIME_ID`, since these values were
[removed from the WASI spec].

[removed from the WASI spec]: WebAssembly/WASI#197
caspervonb pushed a commit to khronosproject/wasi-test that referenced this pull request Feb 11, 2021
Remove the tests for `CLOCKID_PROCESS_CPUTIME_ID` and
`CLOCKID_THREAD_CPUTIME_ID`, since these values were
[removed from the WASI spec].

[removed from the WASI spec]: WebAssembly/WASI#197
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.

None yet

3 participants