<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Artificially increase load. Could be useful in tests, benchmarking.</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.eio.html">Eio Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.eio-cancel.html">eio_cancel</a></div> <div class="up"><a href="ref.eio.html">Eio Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.eio-busy" class="refentry"> <div class="refnamediv"> <h1 class="refname">eio_busy</h1> <p class="verinfo">(PECL eio >= 0.0.1dev)</p><p class="refpurpose"><span class="refname">eio_busy</span> — <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">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">resource</span> <span class="methodname"><strong>eio_busy</strong></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$delay</code></span> [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$pri</code><span class="initializer"> = EIO_PRI_DEFAULT</span></span> [, <span class="methodparam"><span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$callback</code><span class="initializer"> = NULL</span></span> [, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$data</code><span class="initializer"> = NULL</span></span> ]]] )</div> <p class="para rdfs-comment"> <span class="function"><strong>eio_busy()</strong></span> artificially increases load taking <em><code class="parameter">delay</code></em> 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">Parameters</h3> <dl> <dt> <span class="term"><em><code class="parameter">delay</code></em></span> <dd> <p class="para"> Delay in seconds </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">pri</code></em></span> <dd> <p class="para">The request priority: <strong><code>EIO_PRI_DEFAULT</code></strong>, <strong><code>EIO_PRI_MIN</code></strong>, <strong><code>EIO_PRI_MAX</code></strong>, or <strong><code>NULL</code></strong>. If <strong><code>NULL</code></strong> passed, <em><code class="parameter">pri</code></em> internally is set to <strong><code>EIO_PRI_DEFAULT</code></strong>. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">callback</code></em></span> <dd> <p class="para"> This callback is called when all the group requests are done. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">data</code></em></span> <dd> <p class="para"> Arbitrary variable passed to <em><code class="parameter">callback</code></em>. </p> </dd> </dt> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-function.eio-busy-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> <span class="function"><strong>eio_busy()</strong></span> returns request resource on success or <strong><code>FALSE</code></strong> on error. </p> </div> <div class="refsect1 seealso" id="refsect1-function.eio-busy-seealso"> <h3 class="title">See Also</h3> <ul class="simplelist"> <li class="member">eio_nop</li> </ul> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.eio.html">Eio Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.eio-cancel.html">eio_cancel</a></div> <div class="up"><a href="ref.eio.html">Eio Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>