class · System.Threading

AtomicI32

public class System.Threading.AtomicI32 : System.Any

An i32 that threads change together (each operation is atomic). Add, Increment and Decrement give the new value, Exchange and CompareExchange the old one.

Tipo
class
Espacio de nombres
System.Threading
Ensamblado
System.Core
Acceso
public, final
Archivo fuente
Threading.ant

Herencia

Clases base
Any AtomicI32

Constructores

constructor AtomicI32()
#
constructor AtomicI32(value: i32)
#

Propiedades

property Value: i32
#

Métodos

method Load() -> i32
#
method Store(v: i32) -> void
#
method Add(delta: i32) -> i32
#
method Increment() -> i32
#
method Decrement() -> i32
#
method Exchange(v: i32) -> i32
#
method CompareExchange(v: i32, comparand: i32) -> i32
#

Sets v if the value is comparand: the value before.

Miembros privados e internos (6)

field value: i32
#

private

static method LoadAt(at: i32*) -> i32
#

private static

static method StoreAt(at: i32*, value: i32) -> void
#

private static

static method AddAt(at: i32*, value: i32) -> i32
#

private static

static method ExchangeAt(at: i32*, value: i32) -> i32
#

private static

static method CompareAt(at: i32*, expected: i32, value: i32) -> i32
#

private static

Miembros heredados (5)

Código fuente

AtomicI32 en Larva HIR, descompilado a partir de su Larva HIR.

System.Threading.AtomicI32.hir
// An i32 that threads change together (each operation is atomic). Add, Increment and Decrement give the new value,
// Exchange and CompareExchange the old one.
public class System.Threading.AtomicI32 : System.Any
{
    field value: i32
    static method LoadAt(at: i32*) -> i32
    static method StoreAt(at: i32*, value: i32) -> void
    static method AddAt(at: i32*, value: i32) -> i32
    static method ExchangeAt(at: i32*, value: i32) -> i32
    static method CompareAt(at: i32*, expected: i32, value: i32) -> i32
    constructor AtomicI32()
    constructor AtomicI32(value: i32)
    method Load() -> i32
    method Store(v: i32) -> void
    method Add(delta: i32) -> i32
    method Increment() -> i32
    method Decrement() -> i32
    method Exchange(v: i32) -> i32
    // Sets `v` if the value is `comparand`: the value before.
    method CompareExchange(v: i32, comparand: i32) -> i32
    property Value: i32
}
Esc