Udostępnij za pośrednictwem


StampedLock.AsReadWriteLock Method

Definition

Returns a ReadWriteLock view of this StampedLock in which the ReadWriteLock#readLock() method is mapped to #asReadLock(), and ReadWriteLock#writeLock() to #asWriteLock().

[Android.Runtime.Register("asReadWriteLock", "()Ljava/util/concurrent/locks/ReadWriteLock;", "GetAsReadWriteLockHandler", ApiSince=24)]
public virtual Java.Util.Concurrent.Locks.IReadWriteLock? AsReadWriteLock ();
[<Android.Runtime.Register("asReadWriteLock", "()Ljava/util/concurrent/locks/ReadWriteLock;", "GetAsReadWriteLockHandler", ApiSince=24)>]
abstract member AsReadWriteLock : unit -> Java.Util.Concurrent.Locks.IReadWriteLock
override this.AsReadWriteLock : unit -> Java.Util.Concurrent.Locks.IReadWriteLock

Returns

the lock

Attributes

Remarks

Returns a ReadWriteLock view of this StampedLock in which the ReadWriteLock#readLock() method is mapped to #asReadLock(), and ReadWriteLock#writeLock() to #asWriteLock().

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

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