System::Threading::Interlocked::Add Methode

Interlocked::Add(int32_t&, int32_t) method

Erhöht den Wert atomar.

static int32_t System::Threading::Interlocked::Add(int32_t &location1, int32_t value)
ParameterTypBeschreibung
location1int32_t&Variablenreferenz zum Erhöhen.
Wertint32_tWert zum Hinzufügen zu location1.

ReturnValue

Wert der Variablen unmittelbar nach dem Erhöhen.

Siehe auch

Interlocked::Add(int64_t&, int64_t) method

Erhöht den Wert atomar.

static int64_t System::Threading::Interlocked::Add(int64_t &location1, int64_t value)
ParameterTypBeschreibung
location1int64_t&Variablenreferenz zum Erhöhen.
Wertint64_tWert zum Hinzufügen zu location1.

ReturnValue

Wert der Variablen unmittelbar nach dem Erhöhen.

Siehe auch