Semaphore.QueueLength 属性

定义

返回等待获取的线程数的估计值。

public int QueueLength { [Android.Runtime.Register("getQueueLength", "()I", "")] get; }
[<get: Android.Runtime.Register("getQueueLength", "()I", "")>]
member this.QueueLength : int

属性值

等待此锁的估计线程数

属性

注解

返回等待获取的线程数的估计值。 该值只是估计值,因为此方法遍历内部数据结构时线程数可能会动态更改。 此方法旨在用于监视系统状态,而不是用于同步控制。

适用于 . 的 java.util.concurrent.Semaphore.getQueueLength()Java 文档

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

适用于