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
Don't use Synchronization.Atomic for deliverExpectationCheckedEvents. (swiftlang#666)
This PR replaces the new use of `Atomic<Int>` with a `Locked<Int>` in
the implementation of `deliverExpectationCheckedEvents`. Why? Because
we're running into some environments where the Synchronization module
isn't available (e.g. older host macOSes) and this is simpler. The
performance profile is comparable: on my system, running the
`repeatedlyExpect()` test takes 0.55s instead of 0.49s to call
`#expect()` 1,000,000 times, so it's still a significant win over the
implementation we had earlier.
### 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