update : 2015.11.03
php.shukuma.com

검색:
 
 
Set the number of event priority levels

event_base_priority_init

(PECL libevent >= 0.0.2)

event_base_priority_initSet the number of event priority levels

설명

bool event_base_priority_init ( resource $event_base , int $npriorities )

Sets the number of different event priority levels.

By default all events 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.

인수

event_base

Valid event base resource.

npriorities

The number of event priority levels.

반환값

event_base_priority_init() returns TRUE on success or FALSE on error.