Avatar
omochimetaru 7/8/2025 12:27 AM
Sources/以下は1個だけやな
12:28 AM
Pluginsはホストでのビルドだし、Toolsもホスト、Testsはまあ捨てられる
12:28 AM
/// A synchronization primitive that protects shared mutable state via mutual /// exclusion. /// /// The `Mutex` type offers non-recursive exclusive access to the state it is /// protecting by blocking threads attempting to acquire the lock. Only one /// execution context at a time has access to the value stored within the /// `Mutex` allowing for exclusive access. class Mutex<T>: @unchecked Sendable { /// The lock used to synchronize access to the value. var lock: NSLock /// The value protected by the mutex. var value: T
12:29 AM
NSLockだね、Swift 6.0以降なら Synchronization.Mutex が使えるから依存を外せそうか (edited)