Sdílet prostřednictvím


ThreadGroup.Stop Method

Definition

Caution

deprecated

Stops all threads in this thread group.

[Android.Runtime.Register("stop", "()V", "")]
[System.Obsolete("deprecated")]
public void Stop ();
[<Android.Runtime.Register("stop", "()V", "")>]
[<System.Obsolete("deprecated")>]
member this.Stop : unit -> unit
Attributes

Remarks

Stops all threads in this thread group.

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

This method then calls the stop method on all the threads in this thread group and in all of its subgroups.

Added in 1.0.

This member is deprecated. This method is inherently unsafe. See Thread#stop for details.

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

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

See also