The EvFork class

(PECL ev >= 0.2.0)

锟斤拷锟�

Fork watchers are called when a fork() was detected (usually because whoever signalled libev about it by calling EvLoop::fork() ). The invocation is done before the event loop blocks next and before EvCheck watchers are being called, and only in the child after the fork. Note, that if whoever calling EvLoop::fork() calls it in the wrong process, the fork handlers will be invoked, too.

锟斤拷摘要

EvFork extends EvWatcher {
/* 锟教承碉拷锟斤拷锟斤拷 */
public $is_active ;
public $data ;
public $is_pending ;
public $priority ;
/* 锟斤拷锟斤拷 */
public __construct ( callable $callback [, mixed $data = NULL [, int $priority = 0 ]] )
final public static createStopped ( string $callback [, string $data [, string $priority ]] ) : object
/* 锟教承的凤拷锟斤拷 */
public EvWatcher::clear ( void ) : int
abstract public EvWatcher::__construct ( void )
public EvWatcher::feed ( int $revents ) : void
public EvWatcher::getLoop ( void ) : EvLoop
public EvWatcher::invoke ( int $revents ) : void
public EvWatcher::keepalive ([ bool $value ] ) : bool
public EvWatcher::setCallback ( callable $callback ) : void
public EvWatcher::start ( void ) : void
public EvWatcher::stop ( void ) : void
}

Table of Contents