StampedLock.AsReadWriteLock 方法

定义

返回 ReadWriteLock 此 StampedLock 的视图,该方法 ReadWriteLock#readLock() 映射到 #asReadLock()ReadWriteLock#writeLock() 映射到 #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

返回

属性

注解

返回 ReadWriteLock 此 StampedLock 的视图,该方法 ReadWriteLock#readLock() 映射到 #asReadLock()ReadWriteLock#writeLock() 映射到 #asWriteLock()

适用于 . 的 java.util.concurrent.locks.StampedLock.asReadWriteLock()Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于