The EvFork class
(PECL ev >= 0.2.0)
Introduction
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
$callback
,
string $data
= ?,
string $priority
= ?): objectTable of Contents
- EvFork::__construct — Constructs the EvFork watcher object
- EvFork::createStopped — Creates a stopped instance of EvFork watcher class
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
