Skip to content

itssofluffy/Mutex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published