<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.ev.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'ev.depth.php',
    1 => 'Ev::depth',
    2 => 'Returns recursion depth',
  ),
  'up' => 
  array (
    0 => 'class.ev.php',
    1 => 'Ev',
  ),
  'prev' => 
  array (
    0 => 'ev.backend.php',
    1 => 'Ev::backend',
  ),
  'next' => 
  array (
    0 => 'ev.embeddablebackends.php',
    1 => 'Ev::embeddableBackends',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ev/ev/depth.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ev.depth" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Ev::depth</h1>
  <p class="verinfo">(PECL ev &gt;= 0.2.0)</p><p class="refpurpose"><span class="refname">Ev::depth</span> &mdash; <span class="dc-title">Returns recursion depth</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-ev.depth-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span>
   <span class="modifier">public</span>
   <span class="modifier">static</span>
   <span class="methodname"><strong>Ev::depth</strong></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="simpara">
   The number of times
   <span class="methodname"><a href="ev.run.php" class="methodname">Ev::run()</a></span>
   was entered minus the number of times
   <span class="methodname"><a href="ev.run.php" class="methodname">Ev::run()</a></span>
   was exited normally, in other words, the recursion depth. Outside
   <span class="methodname"><a href="ev.run.php" class="methodname">Ev::run()</a></span>,
   this number is
   <code class="literal">0</code>.
   In a callback, this number is
   <code class="literal">1</code>,
   unless
   <span class="methodname"><a href="ev.run.php" class="methodname">Ev::run()</a></span>
   was invoked recursively (or from another thread), in which case it is
   higher.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-ev.depth-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-ev.depth-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   <span class="function"><strong>ev_depth()</strong></span>
   returns recursion depth of the default loop.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-ev.depth-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li>
    <span class="methodname"><a href="ev.iteration.php" class="methodname" rel="rdfs-seeAlso">Ev::iteration()</a> - Return the number of times the default event loop has polled for new
  events</span>
   </li>
  </ul>
 </div>

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