I need to do some synchronization with @synchronized in Obj-C and also need to sync some code in Swift using GCD.
In @synchronized we pass an object as key but what is its equivalent in GCD? It seems there isn't any way to pass key in GCD.
I need to do some synchronization with @synchronized in Obj-C and also need to sync some code in Swift using GCD.
In @synchronized we pass an object as key but what is its equivalent in GCD? It seems there isn't any way to pass key in GCD.