<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.swoole.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'class.swoole-atomic.php',
    1 => 'Swoole\\Atomic',
    2 => 'The Swoole\\Atomic class',
  ),
  'up' => 
  array (
    0 => 'book.swoole.php',
    1 => 'Swoole',
  ),
  'prev' => 
  array (
    0 => 'swoole-async.writefile.php',
    1 => 'Swoole\\Async::writeFile',
  ),
  'next' => 
  array (
    0 => 'swoole-atomic.add.php',
    1 => 'Swoole\\Atomic::add',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/swoole/swoole.atomic.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.swoole-atomic.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.swoole-atomic" class="reference">

 <h1 class="title">The Swoole\Atomic class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL swoole &gt;= 1.9.0)</p>


  <div class="section" id="swoole-atomic.intro">
   <h2 class="title">はじめに</h2>
   <p class="para">

   </p>
  </div>


  <div class="section" id="swoole-atomic.synopsis">
   <h2 class="title">クラス概要</h2>


   <div class="classsynopsis">
    <span class="ooclass"><strong class="classname"></strong></span>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">Swoole\Atomic</strong>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* メソッド */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="swoole-atomic.add.php" class="methodname">add</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$add_value</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-atomic.cmpset.php" class="methodname">cmpset</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$cmp_value</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$new_value</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-atomic.get.php" class="methodname">get</a></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-atomic.set.php" class="methodname">set</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-atomic.sub.php" class="methodname">sub</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$sub_value</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

   }</div>


  </div>

 </div>

 










































<h2>目次</h2><ul class="chunklist chunklist_reference"><li><a href="swoole-atomic.add.php">Swoole\Atomic::add</a> — Add a number to the value to the atomic object.</li><li><a href="swoole-atomic.cmpset.php">Swoole\Atomic::cmpset</a> — Compare and set the value of the atomic object.</li><li><a href="swoole-atomic.construct.php">Swoole\Atomic::__construct</a> — Construct a swoole atomic object.</li><li><a href="swoole-atomic.get.php">Swoole\Atomic::get</a> — Get the current value of the atomic object.</li><li><a href="swoole-atomic.set.php">Swoole\Atomic::set</a> — Set a new value to the atomic object.</li><li><a href="swoole-atomic.sub.php">Swoole\Atomic::sub</a> — Subtract a number to the value of the atomic object.</li></ul>
</div>
<?php manual_footer($setup); ?>