StampedLock.AsWriteLock Method

Definition

Returns a plain Lock view of this StampedLock in which the Lock#lock method is mapped to #writeLock, and similarly for other methods.

[Android.Runtime.Register("asWriteLock", "()Ljava/util/concurrent/locks/Lock;", "GetAsWriteLockHandler", ApiSince=24)]
public virtual Java.Util.Concurrent.Locks.ILock? AsWriteLock ();
[<Android.Runtime.Register("asWriteLock", "()Ljava/util/concurrent/locks/Lock;", "GetAsWriteLockHandler", ApiSince=24)>]
abstract member AsWriteLock : unit -> Java.Util.Concurrent.Locks.ILock
override this.AsWriteLock : unit -> Java.Util.Concurrent.Locks.ILock

Returns

the lock

Attributes

Remarks

Returns a plain Lock view of this StampedLock in which the Lock#lock method is mapped to #writeLock, and similarly for other methods. The returned Lock does not support a Condition; method Lock#newCondition() throws UnsupportedOperationException.

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

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