ReentrantReadWriteLock.ReentrantWriteLock.IsHeldByCurrentThread 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
查询当前线程是否持有此写入锁。
public virtual bool IsHeldByCurrentThread { [Android.Runtime.Register("isHeldByCurrentThread", "()Z", "GetIsHeldByCurrentThreadHandler")] get; }
[<get: Android.Runtime.Register("isHeldByCurrentThread", "()Z", "GetIsHeldByCurrentThreadHandler")>]
member this.IsHeldByCurrentThread : bool
属性值
true 如果当前线程持有此锁, false 则为
- 特性
注解
查询当前线程是否持有此写入锁。 实际上与 ReentrantReadWriteLock#isWriteLockedByCurrentThread.
已在 1.6 中添加。
Java文档java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock.isHeldByCurrentThread()。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。