PHP 7.4.0beta4 released!

Swoole\Atomic::cmpset

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

Swoole\Atomic::cmpsetCompare and set the value of the atomic object.

Description

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

Liste de param├Ętres

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.

Valeurs de retour

The new value of the atomic object.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top