Bagikan melalui


DoubleAccumulator.Reset Method

Definition

Resets variables maintaining updates to the identity value.

[Android.Runtime.Register("reset", "()V", "GetResetHandler", ApiSince=24)]
public virtual void Reset ();
[<Android.Runtime.Register("reset", "()V", "GetResetHandler", ApiSince=24)>]
abstract member Reset : unit -> unit
override this.Reset : unit -> unit
Attributes

Remarks

Resets variables maintaining updates to the identity value. This method may be a useful alternative to creating a new updater, but is only effective if there are no concurrent updates. Because this method is intrinsically racy, it should only be used when it is known that no threads are concurrently updating.

Java documentation for java.util.concurrent.atomic.DoubleAccumulator.reset().

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