Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.41 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.41 KB

Mutex

Swift Swift Build Status macOS Linux License

Mutex is a Swift-3/4 class library for mutual exclusion locks.

Usage

If Swift Package Manager is used, add this package as a dependency in Package.swift,

import PackageDescription

let package = Package (
    name:  "<your-app-name>",
    dependencies: [
        .Package(url: "https://github.com/itssofluffy/Mutex.git", majorVersion: 0)
    ]
)

Examples

Mutex

let mutex = try Mutex()

...

try mutex.lock {
    result = 1
}

License

This project is released under the MIT license. See LICENSE for details.