Swoole\Atomic::cmpset
(PECL swoole >= 1.9.0)
Swoole\Atomic::cmpset — Compare and set the value of the atomic object.
Parameters
cmp_valueThe value to compare with the current value of the atomic object.
new_valueThe value to set to the atomic object if the cmp_value is the same as the current value of the atomic object.
Return Values
The new value of the atomic object.
↑ and ↓ to navigate • Enter to select • Esc to close • / to open