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()

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于