Share via


StampedLock.ReadLockInterruptibly Method

Definition

Non-exclusively acquires the lock, blocking if necessary until available or the current thread is interrupted.

[Android.Runtime.Register("readLockInterruptibly", "()J", "GetReadLockInterruptiblyHandler", ApiSince=24)]
public virtual long ReadLockInterruptibly ();
[<Android.Runtime.Register("readLockInterruptibly", "()J", "GetReadLockInterruptiblyHandler", ApiSince=24)>]
abstract member ReadLockInterruptibly : unit -> int64
override this.ReadLockInterruptibly : unit -> int64

Returns

a read stamp that can be used to unlock or convert mode

Attributes

Remarks

Non-exclusively acquires the lock, blocking if necessary until available or the current thread is interrupted. Behavior under interruption matches that specified for method Lock#lockInterruptibly().

Java documentation for java.util.concurrent.locks.StampedLock.readLockInterruptibly().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to