Instance Method
withLayerReadLock(_:)
Performs an operation while holding shared access to the layer collection.
Not available in Objective-C.Not available in Python.
Declaration
func withLayerReadLock<E, R>(_ body: () throws(E) -> R) throws(E) -> R where E : ErrorParameters
bodyThe operation to perform.
Return Value
The value returned by the operation.
Discussion
This does not by itself protect mutable contents of individual layers.
See Also
Locking
Changes whether editing the glyph is disabled without registering undo.
Prepares the glyph for synchronized access.
Whether the glyph has been prepared for synchronized access.
Acquires shared access to glyph-level cached state.
Performs an operation while holding shared access to glyph-level cached state.
Releases shared access acquired with lock
Read() lockRead lockRead .Acquires exclusive access to glyph-level cached state.
Performs an operation while holding exclusive access to glyph-level cached state.
Releases exclusive access acquired with lock
Write() lockWrite lockWrite .Acquires shared access to the layer collection.
Releases shared access acquired with lock
Read lockLayers() Read lockLayers Read .Layers Acquires exclusive access to the layer collection.
Performs an operation while holding exclusive access to the layer collection.
Releases exclusive access acquired with lock
Write lockLayers() Write lockLayers Write .Layers