طريقة System::Threading::Interlocked::Add

Interlocked::Add(int32_t&, int32_t) method

يزيد القيمة بشكل ذري.

static int32_t System::Threading::Interlocked::Add(int32_t &location1, int32_t value)
ParameterTypeالوصف
location1int32_t&مرجع المتغيّر للزيادة.
valueint32_tالقيمة لإضافتها إلى location1.

ReturnValue

قيمة المتغيّر فور زيادتها.

انظر أيضًا

Interlocked::Add(int64_t&, int64_t) method

يزيد القيمة بشكل ذري.

static int64_t System::Threading::Interlocked::Add(int64_t &location1, int64_t value)
ParameterTypeالوصف
location1int64_t&مرجع المتغيّر للزيادة.
valueint64_tالقيمة لإضافتها إلى location1.

ReturnValue

قيمة المتغيّر فور زيادتها.

انظر أيضًا