We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54d5d3e commit 83e7635Copy full SHA for 83e7635
Sources/TSCBasic/FileSystem.swift
@@ -552,7 +552,7 @@ public class InMemoryFileSystem: FileSystem {
552
/// reality, the only practical use for InMemoryFileSystem is for unit
553
/// tests.
554
private let lock = Lock()
555
- /// Exclusive file system lock vended to clients through `withLock()`.
+ /// A map that keeps weak references to all locked files.
556
private var lockFiles = Dictionary<AbsolutePath, WeakReference<DispatchQueue>>()
557
/// Used to access lockFiles in a thread safe manner.
558
private let lockFilesLock = Lock()
0 commit comments