AbstractQueuedLongSynchronizer.AcquireSharedInterruptibly(Int64) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在共享模式下获取,如果中断,则中止。
[Android.Runtime.Register("acquireSharedInterruptibly", "(J)V", "")]
public void AcquireSharedInterruptibly(long arg);
[<Android.Runtime.Register("acquireSharedInterruptibly", "(J)V", "")>]
member this.AcquireSharedInterruptibly : int64 -> unit
参数
- arg
- Int64
获取参数。
此值将传达给 #tryAcquireShared
但未解释,并且可以表示你喜欢的任何内容。
- 属性
例外
如果当前线程中断
注解
在共享模式下获取,如果中断,则中止。 通过首先检查中断状态来实现,然后至少调用一次 #tryAcquireShared
,并在成功时返回。 否则,线程会排队,可能反复阻止和取消阻止,直到 #tryAcquireShared
成功或线程中断为止。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。