Skip to content

Conversation

@artemcm
Copy link
Contributor

@artemcm artemcm commented Aug 23, 2022

  • SwiftScan use of it seems not needed anymore
  • ArgsResolver use can use 'NSLock' directly

@artemcm
Copy link
Contributor Author

artemcm commented Aug 23, 2022

@swift-ci test

@artemcm
Copy link
Contributor Author

artemcm commented Aug 23, 2022

@swift-ci test


fileprivate extension NSLock {
/// Execute the given block while holding the lock.
func withLock<T> (_ body: () throws -> T) rethrows -> T {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to add a note to keep this in sync with SPM?

- SwiftScan use of it seems not needed anymore
- ArgsResolver use can use 'NSLock' directly
@artemcm
Copy link
Contributor Author

artemcm commented Aug 23, 2022

@swift-ci test

@artemcm artemcm merged commit c40cbd5 into swiftlang:main Aug 23, 2022
@artemcm artemcm deleted the LockFix branch August 23, 2022 17:54
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.

3 participants