Sdílet prostřednictvím


ThreadGroup.Destroy Method

Definition

Destroys this thread group and all of its subgroups.

[Android.Runtime.Register("destroy", "()V", "")]
public void Destroy ();
[<Android.Runtime.Register("destroy", "()V", "")>]
member this.Destroy : unit -> unit
Attributes

Exceptions

if this thread group or any of its subgroups has been destroyed already or if it still contains threads.

Remarks

Destroys this thread group and all of its subgroups. This thread group must be empty, indicating that all threads that had been in this thread group have since stopped.

First, the checkAccess method of this thread group is called with no arguments; this may result in a security exception.

Added in 1.0.

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

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