event_base_priority_init
event_base_priority_init
(PECL libevent >= 0.0.2)
event_base_priority_init — Set the number of event priority levels
Description
bool event_base_priority_init ( resource $event_base , int $npriorities )
Sets the number of different event priority levels.
By default all event
s are scheduled with the same priority
(npriorities
/2). Using event
_
base
_
priority
_
init()
you can change the number of event
priority
levels and then set a desired priority
for each event
.
Parameters
event_base
Valid event base resource.
npriorities
The number of event priority levels.
Return Values
event
_
base
_
priority
_
init()
returns TRUE
on success or FALSE
on error.
← event_base_new
event_base_reinit →
© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://secure.php.net/manual/en/function.event-base-priority-init.php