Commit Graph
2 Commits
Author SHA1 Message Date
NachoSoto ba3e61c17d Lock: changed default implementation to use NSLock (#1819)
`Atomic` can't be used recursively (due to Swift's `inout` limitation), so we pay an unnecessary price in performance using `NSRecursiveLock` that we don't need.
See https://swiftrocks.com/thread-safety-in-swift for a benchmark.

The implementation still allows using `NSRecursiveLock` when necessary.
2022-08-22 16:44:21 -07:00
Will Taylor c54685683b clarify contribution instructions 2022-06-08 16:03:08 -05:00