EventBase::gotExit

(PECL event >= 1.2.6-beta) Checks if the event loop was told to exit public bool EventBase::gotExit ( void ) Checks if the event loop was told to exit by EventBase::exit() . Returns: Returns TRUE, event loop was told to exit by EventBase::exit() . Otherwise FALSE. See also: EventBase::exit() -

EventBase::getTimeOfDayCached

(PECL event >= 1.2.6-beta) Returns the current event base time public double EventBase::getTimeOfDayCached ( void ) On success returns the current time(as returned by gettimeofday() ), looking at the cached value in base if possible, and calling gettimeofday() or clock_gettime() as appropriate if there is no cached time. Returns: Returns the current event base time. On failure returns NULL.

EventBase::getMethod

(PECL event >= 1.2.6-beta) Returns event method in use public string EventBase::getMethod ([ EventConfig $cfg ] ) Parameters: cfg Optional EventConfig object. Returns: String representing used event method(backend). Examples: EventBase::getMethod() example <?php $cf

EventBase::getFeatures

(PECL event >= 1.2.6-beta) Returns bitmask of features supported public int EventBase::getFeatures ( void ) Returns bitmask of features supported. Returns: Returns integer representing a bitmask of supported features. See EventConfig::FEATURE_* constants . Examples: EventBase::getFeatures() example <?php // Avoiding

EventBase::free

(PECL event >= 1.10.0) Free resources allocated for this event base public void EventBase::free ( void ) Deallocates resources allocated by libevent for the EventBase object. Returns: No value is returned. The EventBase::free() method doesn't destruct the object itself. To destruct the object completely call unset() , or assign NULL. This method does not

EventBase::exit

(PECL event >= 1.2.6-beta) Stop dispatching events public bool EventBase::exit ([ double $timeout ] ) Tells event base to stop optionally after given number of seconds. Parameters: timeout Optional number of seconds after which the event base should stop dispatching events. Returns: Returns TRUE on success. Otherwise FALSE.

EventBase::dispatch

(PECL event >= 1.2.6-beta) Dispatch pending events public void EventBase::dispatch ( void ) Wait for events to become active, and run their callbacks. The same as EventBase::loop() with no flags set. Returns: Returns TRUE on success. Otherwise FALSE. Do NOT destroy the EventBase object as long as resources of the associated Event objects are not released.

EventBase::__construct

(PECL event >= 1.2.6-beta) Constructs EventBase object public EventBase::__construct ([ EventConfig $cfg ] ) Constructs EventBase object Parameters: cfg Optional EventConfig object. Returns: Returns EventBase object. See also: EventConfig -

Event::timer

(PECL event >= 1.2.6-beta) Constructs timer event object public static Event Event::timer ( EventBase $base , callable $cb [, mixed $arg ] ) Constructs timer event object. This is a straightforward method to create a timer event. Note, the generic Event::__construct() method can contruct signal event objects too. Parameters: base The associated event base object.

Event::signal

(PECL event >= 1.2.6-beta) Constructs signal event object public static Event Event::signal ( EventBase $base , int $signum , callable $cb [, mixed $arg ] ) Constructs signal event object. This is a straightforward method to create a signal event. Note, the generic Event::__construct() method can contruct signal event objects too. Parameters: base The associated even