array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'swoole-atomic.add.php', 1 => 'Swoole\\Atomic::add', 2 => 'Add a number to the value to the atomic object.', ), 'up' => array ( 0 => 'class.swoole-atomic.php', 1 => 'Swoole\\Atomic', ), 'prev' => array ( 0 => 'class.swoole-atomic.php', 1 => 'Swoole\\Atomic', ), 'next' => array ( 0 => 'swoole-atomic.cmpset.php', 1 => 'Swoole\\Atomic::cmpset', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/atomic/add.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL swoole >= 1.9.0)
Swoole\Atomic::add — Add a number to the value to the atomic object.
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.