語言

ReentrantReadWriteLock.WriteHoldCount 屬性

定義

查詢該鎖在目前執行緒時所保持的重入寫入次數。

public virtual int WriteHoldCount { [Android.Runtime.Register("getWriteHoldCount", "()I", "GetGetWriteHoldCountHandler")] get; }
[<get: Android.Runtime.Register("getWriteHoldCount", "()I", "GetGetWriteHoldCountHandler")>]
member this.WriteHoldCount : int

屬性值

當前執行緒對寫入鎖的保留數,若未被執行緒持有,則為零

屬性

備註

查詢該鎖在目前執行緒時所保持的重入寫入次數。 寫入執行緒對每個鎖定動作有鎖定權限,而該動作未被解鎖動作匹配。

Java 文件 java.util.concurrent.locks.ReentrantReadWriteLock.getWriteHoldCount()

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於