<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.eio.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.eio-busy.php',
    1 => 'eio_busy',
    2 => 'Artificially increase load. Could be useful in tests,
  benchmarking',
  ),
  'up' => 
  array (
    0 => 'ref.eio.php',
    1 => 'Eio 函数',
  ),
  'prev' => 
  array (
    0 => 'ref.eio.php',
    1 => 'Eio 函数',
  ),
  'next' => 
  array (
    0 => 'function.eio-cancel.php',
    1 => 'eio_cancel',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/eio/functions/eio-busy.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.eio-busy" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">eio_busy</h1>
  <p class="verinfo">(PECL eio &gt;= 0.0.1dev)</p><p class="refpurpose"><span class="refname">eio_busy</span> &mdash; <span class="dc-title">Artificially increase load. Could be useful in tests,
  benchmarking</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.eio-busy-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>eio_busy</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$delay</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$pri</code><span class="initializer"> = EIO_PRI_DEFAULT</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span> <code class="parameter">$callback</code><span class="initializer"> = NULL</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$data</code><span class="initializer"> = NULL</span></span><br>): <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span></div>

  <p class="simpara">
  <span class="function"><strong>eio_busy()</strong></span> artificially increases load taking
  <code class="parameter">delay</code> seconds to execute. May be used for debugging,
  or benchmarking.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.eio-busy-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">delay</code></dt>
    <dd>
     <span class="simpara">
     Delay in seconds
     </span>
    </dd>
   
   
    <dt><code class="parameter">pri</code></dt>
    <dd>
    <p class="para">请求的优先级：<strong><code><a href="eio.constants.php#constant.eio-pri-default">EIO_PRI_DEFAULT</a></code></strong>，<strong><code><a href="eio.constants.php#constant.eio-pri-min">EIO_PRI_MIN</a></code></strong>，<strong><code><a href="eio.constants.php#constant.eio-pri-max">EIO_PRI_MAX</a></code></strong> 或 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>。如果是
<strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>，<code class="parameter">pri</code> 将设为
<strong><code><a href="eio.constants.php#constant.eio-pri-default">EIO_PRI_DEFAULT</a></code></strong>。
</p>

    </dd>
   
   
    <dt><code class="parameter">callback</code></dt>
    <dd>
    <span class="simpara">
    This callback is called when all the group requests are done.
    </span>
    </dd>
   
   
    <dt><code class="parameter">data</code></dt>
    <dd>
     <span class="simpara">
     Arbitrary variable passed to <code class="parameter">callback</code>.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.eio-busy-returnvalues">
 <h3 class="title">返回值</h3>
  <p class="simpara">
   <span class="function"><strong>eio_busy()</strong></span> returns request resource on success, 或者在失败时返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.eio-busy-seealso"> <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.eio-nop.php" class="function" rel="rdfs-seeAlso">eio_nop()</a> - Does nothing, except go through the whole request cycle</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>