共用方式為


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 屬性授權中所述的詞彙使用。

適用於