AbstractQueuedSynchronizer.AcquireSharedInterruptibly(Int32) 方法

定义

在共享模式下获取,如果中断,则中止。

[Android.Runtime.Register("acquireSharedInterruptibly", "(I)V", "")]
public void AcquireSharedInterruptibly (int arg);
[<Android.Runtime.Register("acquireSharedInterruptibly", "(I)V", "")>]
member this.AcquireSharedInterruptibly : int -> unit

参数

arg
Int32

获取参数。 此值将传达给 #tryAcquireShared 但未解释,并且可以表示你喜欢的任何内容。

属性

例外

如果当前线程中断

注解

在共享模式下获取,如果中断,则中止。 通过首先检查中断状态来实现,然后至少调用一次 #tryAcquireShared,并在成功时返回。 否则,线程会排队,可能反复阻止和取消阻止,直到 #tryAcquireShared 成功或线程中断为止。

适用于 . 的 java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(int)Java 文档

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

适用于