共用方式為


AtomicInteger.Set(Int32) 方法

定義

將值設定為 newValue,並具有 指定的 VarHandle#setVolatile記憶體效果。

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

參數

newValue
Int32

新值

屬性

備註

將值設定為 newValue,並具有 指定的 VarHandle#setVolatile記憶體效果。

java.util.concurrent.atomic.AtomicInteger.set(int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於