Skip to content

geor-kasapidi/STS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Swift thread safety

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages