I\'m writing a multithreaded application for iPhone, and I\'m using NSLock\'s to make sure that some operations (such as loading sounds from file) will behave as atomic. To simplify acquiring locks fr
I\'m using [ALAssetsLibrary enumerateGroupsWithTypes:] to store the ALAssets in an array. As this is an asynchronous operation, I need to wait for it to finish before continuing my work.
I have a class with 2 methods, the first one makes an animation for a second and the second performs some task.
This question already has answers here: Break on _NSLockError() to debug ... How to? (3 answers) Closed 6 years ago.
I have my main application delegate which contains a method that returns an object. This application delegate runs on the main thread.
Should I make a single NSLock instance in the application deleg开发者_开发知识库ate, to be used by all classes? Or is it advisable to have each class instantiate its own NSLock instance as needed?