PHP Doku:: Set the number of event priority levels - function.event-base-priority-init.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzErweiterungen zur ProzesskontrolleLibeventLibevent Funktionenevent_base_priority_init

Ein Service von Reinhard Neidl - Webprogrammierung.

Libevent Funktionen

<<event_base_new

event_base_set>>

event_base_priority_init

(PECL libevent >= 0.0.2)

event_base_priority_initSet the number of event priority levels

Beschreibung

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.

Parameter-Liste

event_base

Valid event base resource.

npriorities

The number of event priority levels.

Rückgabewerte

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


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)