Peter Steinberger measured the new
NSLock, dispatch queues, and
Apple’s libplatform is now OSS too with user-land os_unfair_lock (os/lock.c) in all its strict glory.
If you use it from Swift, you have to be careful, because it’s a struct and Swift doesn’t prevent you from copying or moving it around, which normally would be an error.
Stay up-to-date by subscribing to the Comments RSS Feed for this post.