You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable pthread_mutex_t use on WASI with a multithreaded runtime. (#322)
This PR opts WASI builds into using `pthread_mutex_t` in `Locked` when
the WASI environment supports threading.
`_runtime(_multithreaded)` was added very recently with
swiftlang/swift#72649, so we need an additional
compiler version check before testing the runtime flag. That change has
not been cherry-picked to Swift 6.0, so assume 6.1 or later is needed.
WASI with Swift 5.10, as well as WASI without threading, will continue
to stub out `Locked`.
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.
0 commit comments