EventConfig::setMaxDispatchInterval
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
EventConfig::setMaxDispatchInterval
Референца за `eventconfig.setmaxdispatchinterval.php` со подобрена типографија и навигација.
EventConfig::setMaxDispatchInterval
(PECL event >= 2.1.0-alpha)
EventConfig::setMaxDispatchInterval — Prevents priority inversion
= NULL
$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.
Забелешка:
може да биде едно од:
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_intervalandmax_callbacksshould not be enforced. If this is set to0, they are enforced for events of every priority; if it's set to1, they're enforced for events of priority1and above, and so on.