StyledTextKit
StyledTextKit copied to clipboard
Safer locking
I learned about the use of unfair locks from this library. Thanks!
Anyway, today I stumbled upon this StackOverflow answer that mentioned that the direct use of unfair locks in Swift can fail at runtime. The fix is really simple; a pointer wrapper that provides a stable memory address (the assumption the C API makes). Any thoughts about this?