StampedLock.WriteLock Method

Definition

Exclusively acquires the lock, blocking if necessary until available.

[Android.Runtime.Register("writeLock", "()J", "GetWriteLockHandler", ApiSince=24)]
public virtual long WriteLock ();
[<Android.Runtime.Register("writeLock", "()J", "GetWriteLockHandler", ApiSince=24)>]
abstract member WriteLock : unit -> int64
override this.WriteLock : 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.

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

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