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

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于