System::Threading::Interlocked::Increment メソッド

Interlocked::Increment(int32_t&) method

値を原子的にインクリメントします。

static int32_t System::Threading::Interlocked::Increment(int32_t &location)
パラメーター説明
locationint32_t&インクリメントする変数参照。

ReturnValue

インクリメント直後の変数の値。

参照

Interlocked::Increment(int64_t&) method

値を原子的にインクリメントします。

static int64_t System::Threading::Interlocked::Increment(int64_t &location)
パラメーター説明
locationint64_t&インクリメントする変数参照。

ReturnValue

インクリメント直後の変数の値。

参照