array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.eio-busy.php', 1 => 'eio_busy', ), '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' => 'ja', 'path' => 'reference/eio/functions/eio-busy.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL eio >= 0.0.1dev)
eio_busy — 人為的に負荷を高くする。テストやベンチマークなどで有用
$delay
,$pri
= EIO_PRI_DEFAULT,$callback
= NULL,$data
= NULL
eio_busy() は人為的に負荷を高め、実行前に
delay
秒待ちます。デバッグやベンチマークに使えるでしょう。
delay
待つ秒数。
pri
リクエストの優先順位。EIO_PRI_DEFAULT
、EIO_PRI_MIN
、EIO_PRI_MAX
あるいは null
を指定します。
null
を渡した場合、pri
は内部的に
EIO_PRI_DEFAULT
となります。
callback
すべてのグループリクエストが終わったときに呼ばれるコールバック。
data
callback
に渡す任意の引数。
eio_busy() は成功した場合にリクエストリソースを返します。
失敗した場合に false
を返します