Sdílet prostřednictvím


StampedLock.WriteLockInterruptibly Method

Definition

Exclusively acquires the lock, blocking if necessary until available or the current thread is interrupted.

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

Returns

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

Attributes

Remarks

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.writeLockInterruptibly().

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