« Swoole\Atomic
Swoole\Atomic::cmpset »

Swoole\Atomic::add

(PECL swoole >= 1.9.0)

Swoole\Atomic::add — Add a number to the value to the atomic object.

説明

public function Swoole\Atomic::add(int $add_value = ?): int

Add a number to the value to the atomic object.

パラメータ

add_value

The value which will be added to the current value.

戻り値

The new value of the atomic object.

関連キーワード:
Swoole   Atomic   atomic   number   cmpset   swoole   added   current
関連する関数・ページ:
class.swoole-atomic   swoole-atomic.set   swoole-atomic.get   swoole-atomic.cmpset   swoole-atomic.construct   swoole-atomic.sub