@discardableResult func lock(_ timeout: Int = Int(SWIFT_FOREVER)) -> Result<(), Errno>
s7SwiftIO5MutexV4lockys6ResultOyytAA5ErrnoVGSiF
3EMIE
import SwiftIO
The SwiftIO library allows you to access and control the hardware in an easy way.
struct Mutex
@frozen struct Int
A signed integer value type.
@frozen enum Result<Success, Failure> where Failure : Error, Success : ~Copyable
A value that represents either a success or a failure, including an associated value in each case.
struct Errno
The Errno struct lists all the possible errors.
init()
func destroy()
@discardableResult func unlock() -> Result<(), Errno>