Type Method


Attempts to acquire a recursive spin-lock lock, ensuring that returned layer values are valid until unlocked.


class func lock()


Core Animation uses a data model that promises not to corrupt the internal data structures when called from multiple threads concurrently, but not that data returned is still valid if the property was valid on another thread. By locking during a transaction you can ensure data that is read, modified, and set is correctly managed.

See Also

Managing Concurrency

class func unlock()

Relinquishes a previously acquired transaction lock.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software