array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'ev.suspend.php', 1 => 'Ev::suspend', ), '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' => 'ja', 'path' => 'reference/ev/ev/suspend.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL ev >= 0.2.0)
Ev::suspend — デフォルトのイベントループを一時停止する
Ev::suspend() と Ev::resume() が、それぞれループの一時停止と再開に対応します。
すべてのタイマーウォッチャーは、 suspend から resume までの時間だけ遅延します。また、すべての定期ウォッチャーは再スケジュールされます (つまり、一時停止中に発生したイベントは失うことになります)。
Ev::suspend() を呼んだ後は、 そのループ上では Ev::resume() 以外の関数を呼べません。 また、先に Ev::suspend() を呼んでいない状態で Ev::resume() は呼べません。
この関数にはパラメータはありません。
値を返しません。