Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 278 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 278 Bytes

STS

Convenient wrapper around os_unfair_lock and property warpper for atomic memory access on any apple platform.

let lock = UnfairLock()
lock.lock()
// ...
lock.unlock()
@ThreadSafe
var value = SomeType()

value.info.id += 1 // safe and atomic