略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: event_base_priority_init

2024-05-02

event_base_priority_init

(PECL libevent >= 0.0.2)

event_base_priority_initSet the number of event priority levels

说明

event_base_priority_init ( resource $event_base , int $npriorities ) : bool

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.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.event-base-priority-init.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3