語言

StampedLock.WriteLockInterruptibly 方法

定義

獨家取得鎖,必要時封鎖,直到可用或當前執行緒中斷為止。

[Android.Runtime.Register("writeLockInterruptibly", "()J", "GetWriteLockInterruptiblyHandler", ApiSince=24)]
public virtual long WriteLockInterruptibly();
[<Android.Runtime.Register("writeLockInterruptibly", "()J", "GetWriteLockInterruptiblyHandler", ApiSince=24)>]
abstract member WriteLockInterruptibly : unit -> int64
override this.WriteLockInterruptibly : unit -> int64

傳回

一個可以用來解鎖或轉換模式的寫入印記

屬性

備註

獨家取得鎖,必要時封鎖,直到可用或當前執行緒中斷為止。 中斷下的行為與方法 Lock#lockInterruptibly()所指定的相符。

的 java.util.concurrent.locks.StampedLock.writeLockInterruptibly()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於