Reputation: 79
Two thread access fileName at the same time.
Set If 0 made deadlock. but If 1 was all going well.
So what brought this on?
Upvotes: 3
Views: 398
Reputation: 6276
Make sure you're not calling +[PHAssetResource assetResourcesForAsset:]
synchronously on the main thread. That method (and maybe other PHAssetResource
methods, I haven't investigated yet) is executed on the main thread internally.
Upvotes: 2