<?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.suspend.php',
    1 => 'Ev::suspend',
    2 => 'Suspend the default event loop',
  ),
  'up' => 
  array (
    0 => 'class.ev.php',
    1 => 'Ev',
  ),
  'prev' => 
  array (
    0 => 'ev.supportedbackends.php',
    1 => 'Ev::supportedBackends',
  ),
  'next' => 
  array (
    0 => 'ev.time.php',
    1 => 'Ev::time',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ev/ev/suspend.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ev.suspend" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Ev::suspend</h1>
  <p class="verinfo">(PECL ev &gt;= 0.2.0)</p><p class="refpurpose"><span class="refname">Ev::suspend</span> &mdash; <span class="dc-title">Suspend the default event loop</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-ev.suspend-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::suspend</strong></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="simpara">
   <span class="methodname"><strong>Ev::suspend()</strong></span>
   and
   <span class="methodname"><a href="ev.resume.php" class="methodname">Ev::resume()</a></span>
   methods suspend and resume the default loop correspondingly.
  </p>
  <p class="simpara">
   All timer watchers will be delayed by the time spend between
   <em>suspend</em>
   and
   <em>resume</em>,
   and all
   <em>periodic</em>
   watchers will be rescheduled(that is, they will lose any events that would
   have occurred while suspended).
  </p>
  <p class="simpara">
   After calling
   <span class="methodname"><strong>Ev::suspend()</strong></span>
   it is not allowed to call any function on the given loop other than
   <span class="methodname"><a href="ev.resume.php" class="methodname">Ev::resume()</a></span>.
   Also it is not allowed to call
   <span class="methodname"><a href="ev.resume.php" class="methodname">Ev::resume()</a></span>
   without a previous call to
   <span class="methodname"><strong>Ev::suspend()</strong></span>.
  </p>
 </div>

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

 <div class="refsect1 returnvalues" id="refsect1-ev.suspend-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   没有返回值。
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-ev.suspend-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li>
    <span class="methodname"><a href="ev.resume.php" class="methodname" rel="rdfs-seeAlso">Ev::resume()</a> - Resume previously suspended default event loop</span>
   </li>
  </ul>
 </div>

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