array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'eventconfig.setmaxdispatchinterval.php', 1 => 'EventConfig::setMaxDispatchInterval', ), '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', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL event >= 2.1.0-alpha)
EventConfig::setMaxDispatchInterval — Prevents priority inversion
$max_interval
,
int $max_callbacks
,
int $min_priority
): voidPrevents priority inversion by limiting how many low-priority event callbacks can be invoked before checking for more high-priority events.
Hinweis:
Available since
libevent 2.1.0-alpha
.
max_interval
An interval after which Libevent should stop running callbacks and check
for more events, or
0
, if there should be no such interval.
max_callbacks
A number of callbacks after which Libevent should stop running callbacks
and check for more events, or
-1
, if there should be no such limit.
min_priority
A priority below which
max_interval
and
max_callbacks
should not be enforced. If this is set to
0
, they are enforced for events of every priority; if it's set to
1
, they're enforced for events of priority
1
and above, and so on.