Notice: the documentation is suitable for PHP extension
swooleuntil v4.7.1, we only support PHP extension
<?php Swoole\Atomic\Long->cmpset ( int $cmp = 0, int $new = 0 )
The old value to compare with.
The new value
Compare and set the value of the atomic object. See more about Compare and set.