EventConfig::setMaxDispatchInterval
(No version information available, might only be in Git)
EventConfig::setMaxDispatchInterval — Prevents priority inversion
Description
$max_interval
,
int
$max_callbacks
,
int
$min_priority
)Prevents priority inversion by limiting how many low-priority event callbacks can be invoked before checking for more high-priority events.
Note:
Available since libevent 2.1.0-alpha .
Parameters
-
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
andmax_callbacks
should 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 priority1
and above, and so on.
Return Values
Returns TRUE
on success, otherwise FALSE
.
- Функция EventConfig::avoidMethod() - Tells libevent to avoid specific event method
- Функция EventConfig::__construct() - Constructs EventConfig object
- Функция EventConfig::requireFeatures() - Enters a required event method feature that the application demands
- Функция EventConfig::setMaxDispatchInterval() - Prevents priority inversion
Коментарии
404 Not Found