AtomicLongFieldUpdater.Set(Object, Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the field of the given object managed by this updater to the given updated value.
[Android.Runtime.Register("set", "(Ljava/lang/Object;J)V", "GetSet_Ljava_lang_Object_JHandler")]
public abstract void Set (Java.Lang.Object? obj, long newValue);
[<Android.Runtime.Register("set", "(Ljava/lang/Object;J)V", "GetSet_Ljava_lang_Object_JHandler")>]
abstract member Set : Java.Lang.Object * int64 -> unit
Parameters
- obj
- Object
An object whose field to set
- newValue
- Int64
the new value
- Attributes
Remarks
Sets the field of the given object managed by this updater to the given updated value. This operation is guaranteed to act as a volatile store with respect to subsequent invocations of compareAndSet
.
Java documentation for java.util.concurrent.atomic.AtomicLongFieldUpdater.set(T, long)
.
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.