PHP
处理控制 | Process Control

event_base_set

event_base_set

(PECL libevent >= 0.0.1)

event_base_set — Associate event base with an event

Description

bool event_base_set ( resource $event , resource $event_base )

Associates the event_base with the event.

Parameters

event

Valid event resource.

event_base

Valid event base resource.

Return Values

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

← event_base_reinit

event_buffer_base_set →

© 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-set.php