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
-
AnyAtomicI32
Constructores
Propiedades
Métodos
Sets v if the value is comparand: the value before.
Miembros privados e internos (6)
Miembros heredados (5)
GetTypemétodo de AnyUndescribedmétodo de AnyToStringmétodo de AnyHashmétodo de Anydestroymétodo de Any
Código fuente
AtomicI32 en Larva HIR, descompilado a partir de su Larva 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
}