« Swoole\Atomic::add
Swoole\Atomic::__construct »

Swoole\Atomic::cmpset

(PECL swoole >= 1.9.0)

Swoole\Atomic::cmpset — Compare and set the value of the atomic object.

説明

public function Swoole\Atomic::cmpset(int $cmp_value, int $new_value): int

パラメータ

cmp_value

The value to compare with the current value of the atomic object.

new_value

The value to set to the atomic object if the cmp_value is the same as the current value of the atomic object.

戻り値

The new value of the atomic object.

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

他のマニュアルの関連ページ