-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly stub out pthread cancellation
Although it is not supported in WASI, thread cancellation is an important feature of pthreads with wide-ranging implications. Provide the best stubs we can within the limitations by allowing cancellation type and state to be set, even though they will have no effect as pthread_cancel is stubbed to always return ENOTSUP Remove the THREAD_MODEL=single guard as it's currently not being compiled in that case, and because we intend to provide single-threaded stub implementations in the future. Incidentally replace the existing pthread_setcancelstate stub with one which actually correctly writes a value to the old parameter.
- Loading branch information
1 parent
1b35dd3
commit 12ad798
Showing
4 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters