AtomicReference.LazySet(Object) 方法

定义

将值设置为 newValue,并指定 VarHandle#setRelease内存效果。

[Android.Runtime.Register("lazySet", "(Ljava/lang/Object;)V", "")]
public void LazySet(Java.Lang.Object? newValue);
[<Android.Runtime.Register("lazySet", "(Ljava/lang/Object;)V", "")>]
member this.LazySet : Java.Lang.Object -> unit

参数

newValue
Object

新值

属性

注解

将值设置为 newValue,并指定 VarHandle#setRelease内存效果。

已在 1.6 中添加。

Java文档java.util.concurrent.atomic.AtomicReference.lazySet(V)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于