Objective-C’s @synchronized Coded in Swift

Mike Ash on @synchronized in Swift:

“Continuing the theme of thread safety from the previous article, today I’m going to explore an implementation of Objective-C’s @synchronized facility in the latest edition of Let’s Build. I’m going to build it in Swift, although an equivalent Objective-C version would be much the same.”

This is an interesting post, covering thread safety, synchronization and usage of a global lock.