다음을 통해 공유


AtomicBoolean.Set(Boolean) Method

Definition

Sets the value to newValue, with memory effects as specified by VarHandle#setVolatile.

[Android.Runtime.Register("set", "(Z)V", "")]
public void Set (bool newValue);
[<Android.Runtime.Register("set", "(Z)V", "")>]
member this.Set : bool -> unit

Parameters

newValue
Boolean

the new value

Attributes

Remarks

Sets the value to newValue, with memory effects as specified by VarHandle#setVolatile.

Java documentation for java.util.concurrent.atomic.AtomicBoolean.set(boolean).

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