mirror of
https://github.com/apple/swift-log
synced 2026-11-22 03:40:39 +00:00
Make ReadWriteLock.init internal (#496)
### Motivation: `public` init has no effect for an `internal` class. ### Modifications: Removed `public` from the `ReadWriteLock.init`. ### Result: `ReadWriteLock.init` is now `internal`, matching class visibility.
This commit is contained in:
1 parent
7af2de138f
commit
3ffafb9722
1 file changed
+1
-1
@@ -196,7 +196,7 @@ internal final class ReadWriteLock: @unchecked Sendable {
|
||||
#endif
|
||||
|
||||
/// Create a new lock.
|
||||
public init() {
|
||||
init() {
|
||||
#if os(Windows)
|
||||
InitializeSRWLock(self.rwlock)
|
||||
#elseif (compiler(<6.1) && !os(WASI)) || (compiler(>=6.1) && _runtime(_multithreaded))
|
||||
|
||||
Reference in new issue
Block a user