StampedLock.ReadLockInterruptibly 方法

定义

非独占方式获取锁,必要时会阻塞,直到可用或当前线程中断。

[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文档java.util.concurrent.locks.StampedLock.readLockInterruptibly()

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

适用于