StampedLock.ReadLockInterruptibly 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
非獨佔取得鎖,必要時阻塞,直到可用或當前執行緒中斷。
[Android.Runtime.Register("readLockInterruptibly", "()J", "GetReadLockInterruptiblyHandler", ApiSince=24)]
public virtual long ReadLockInterruptibly();
[<Android.Runtime.Register("readLockInterruptibly", "()J", "GetReadLockInterruptiblyHandler", ApiSince=24)>]
abstract member ReadLockInterruptibly : unit -> int64
override this.ReadLockInterruptibly : unit -> int64
傳回
一種可用來解鎖或轉換模式的讀取印章
- 屬性
備註
非獨佔取得鎖,必要時阻塞,直到可用或當前執行緒中斷。 中斷下的行為與方法 Lock#lockInterruptibly()所指定的相符。
的 java.util.concurrent.locks.StampedLock.readLockInterruptibly()Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。