首页
学习
活动
专区
圈层
工具
发布

EvFork (class)

Introduction

(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.

Class synopsis

EvFork extends EvWatcher {

/* Inherited properties */

public $is_active ;

public $data ;

public $is_pending ;

public $priority ;

/* Methods */

代码语言:javascript
代码运行次数:0
复制
public __construct (  callable $callback  [,  mixed $data  = NULL  [,  int $priority  = 0  ]] )
代码语言:javascript
代码运行次数:0
复制
final public static object createStopped (  string $callback  [,  string $data  [,  string $priority  ]] )

/* Inherited methods */

代码语言:javascript
代码运行次数:0
复制
public int EvWatcher::clear ( void )
代码语言:javascript
代码运行次数:0
复制
abstract public EvWatcher::__construct ( void )
代码语言:javascript
代码运行次数:0
复制
public void EvWatcher::feed (  int $revents  )
代码语言:javascript
代码运行次数:0
复制
public EvLoop EvWatcher::getLoop ( void )
代码语言:javascript
代码运行次数:0
复制
public void EvWatcher::invoke (  int $revents  )
代码语言:javascript
代码运行次数:0
复制
public bool EvWatcher::keepalive ([  bool $value  ] )
代码语言:javascript
代码运行次数:0
复制
public void EvWatcher::setCallback (  callable $callback  )
代码语言:javascript
代码运行次数:0
复制
public void EvWatcher::start ( void )
代码语言:javascript
代码运行次数:0
复制
public void EvWatcher::stop ( void )

}

Table of Contents

  • EvFork::__construct — Constructs the EvFork watcher object
  • EvFork::createStopped — Creates a stopped instance of EvFork watcher class

← EvEmbed::sweep

EvFork::__construct →

代码语言:txt
复制
 © 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

扫码关注腾讯云开发者

领取腾讯云代金券