<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.eventconfig.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'eventconfig.setmaxdispatchinterval.php',
    1 => 'EventConfig::setMaxDispatchInterval',
    2 => 'Prevents priority inversion',
  ),
  'up' => 
  array (
    0 => 'class.eventconfig.php',
    1 => 'EventConfig',
  ),
  'prev' => 
  array (
    0 => 'eventconfig.setflags.php',
    1 => 'EventConfig::setFlags',
  ),
  'next' => 
  array (
    0 => 'class.eventdnsbase.php',
    1 => 'EventDnsBase',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/event/eventconfig/setmaxdispatchinterval.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="eventconfig.setmaxdispatchinterval" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventConfig::setMaxDispatchInterval</h1>
  <p class="verinfo">(PECL event &gt;= 2.1.0-alpha)</p><p class="refpurpose"><span class="refname">EventConfig::setMaxDispatchInterval</span> &mdash; <span class="dc-title">Prevents priority inversion</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventconfig.setmaxdispatchinterval-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="methodname"><strong>EventConfig::setMaxDispatchInterval</strong></span>(<span class="methodparam">
    
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$max_interval</code>
   </span>, <span class="methodparam">
    
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$max_callbacks</code>
   </span>, <span class="methodparam">
    
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$min_priority</code>
   </span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="para rdfs-comment">
   Prevents priority inversion by limiting how many low-priority event
   callbacks can be invoked before checking for more high-priority events.
  </p>
  <blockquote class="note"><p><strong class="note">Nota</strong>: 
   <p class="para">
    Available since
    <code class="literal">libevent 2.1.0-alpha</code>.
   </p>
  </p></blockquote>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventconfig.setmaxdispatchinterval-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <dl>
   
    <dt>
     <code class="parameter">max_interval</code>
    </dt>
    <dd>
     <p class="para">
      An interval after which Libevent should stop running callbacks and check
      for more events, or
      <code class="literal">0</code>,
      if there should be no such interval.
     </p>
    </dd>
   
   
    <dt>
     <code class="parameter">max_callbacks</code>
    </dt>
    <dd>
     <p class="para">
      A number of callbacks after which Libevent should stop running callbacks
      and check for more events, or
      <strong><code>-1</code></strong>,
      if there should be no such limit.
     </p>
    </dd>
   
   
    <dt>
     <code class="parameter">min_priority</code>
    </dt>
    <dd>
     <p class="para">
      A priority below which
      <code class="parameter">max_interval</code>
      and
      <code class="parameter">max_callbacks</code>
      should not be enforced. If this is set to
      <code class="literal">0</code>,
      they are enforced for events of every priority; if it&#039;s set to
      <code class="literal">1</code>,
      they&#039;re enforced for events of priority
      <code class="literal">1</code>
      and above, and so on.
     </p>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventconfig.setmaxdispatchinterval-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Restituisce <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> in caso di successo, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> in caso di fallimento.
  </p>
 </div>

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