Sdílet prostřednictvím


ThreadGroup.ActiveGroupCount Method

Definition

Returns an estimate of the number of active groups in this thread group and its subgroups.

[Android.Runtime.Register("activeGroupCount", "()I", "GetActiveGroupCountHandler")]
public virtual int ActiveGroupCount ();
[<Android.Runtime.Register("activeGroupCount", "()I", "GetActiveGroupCountHandler")>]
abstract member ActiveGroupCount : unit -> int
override this.ActiveGroupCount : unit -> int

Returns

the number of active thread groups with this thread group as an ancestor

Attributes

Remarks

Returns an estimate of the number of active groups in this thread group and its subgroups. Recursively iterates over all subgroups in this thread group.

The value returned is only an estimate because the number of thread groups may change dynamically while this method traverses internal data structures. This method is intended primarily for debugging and monitoring purposes.

Added in 1.0.

Java documentation for java.lang.ThreadGroup.activeGroupCount().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to