downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

event_base_set> <event_base_new
[edit] Last updated: Fri, 26 Apr 2013

view this page in

event_base_priority_init

(PECL libevent >= 0.0.2)

event_base_priority_initSet 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 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.

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.



add a note add a note User Contributed Notes event_base_priority_init - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites