Metadata Lock
A lock for ensuring thread-safe access to mutable service metadata.
See ReadWriteLock for notes regarding lock reentrancy for writers.
Functions
Lock metadata while performing an action that doesn't change metadata.
To separate the locking and unlocking steps, see {@link com.sap.cloud.mobile.kotlin.odata.MetadataLock#mutex MetadataLock.mutex}, ReadWriteLock.beginRead and ReadWriteLock.endRead.
Note: a thread may request a read lock when it already has a read lock (but not if it already has a write lock).
Lock metadata while performing an action that changes metadata.
To separate the locking and unlocking steps, see {@link com.sap.cloud.mobile.kotlin.odata.MetadataLock#mutex MetadataLock.mutex}, ReadWriteLock.beginWrite and ReadWriteLock.endWrite.
Note: If a thread tries to acquire a write lock while already holding a (read or write) lock, the thread will hang.