lock(_:)

Thread.swift:28
@discardableResult func lock(_ timeout: Int = Int(SWIFT_FOREVER)) -> Result<(), Errno>