EvLoop::loopFork

(PECL ev >= 0.2.0)

EvLoop::loopForkMust be called after a fork

说明

public EvLoop::loopFork ( void ) : void

Must be called after a fork in the child, before entering or continuing the event loop. An alternative is to use Ev::FLAG_FORKCHECK which calls this function automatically, at some performance loss (refer to the » libev documentation ).

参数

此函数没有参数。

返回值

没有返回值。

相关文章
php pair returns a representation that can be converted to jsonphp eventbase re initialize event base after a fork php evloop creates evcheck object associated with the current event loop instancephp evloop must be called after a forkphp evloop creates evsignal watcher object associated with the current event loop instancephp eio 函数 can be to be called whenever there are pending requests that need finishingphp libevent 函数 reinitialize the event base after a forkphp grapheme 函数 function to extract a sequence of default grapheme clusters from a text buffer which must be encoded in utf 8php gupnp 函数 sets a function to be called at regular intervalsphp firebird/interbase 函数 register a callback function to be called when events are postedphp mcve 函数 returns array of strings which represents the keys that can be used for response parameters on this transactionphp pcntl 函数 等待或返回fork的子进程状态php gearmanclient set a function to be called on task completionphp imagickdraw set the polygon fill rule to be used by the clipping pathphp mongocursor sets whether this cursor will be left open after fetching the last resultsphp mongodb bson dbpointer returns a representation that can be converted to jsonphp mongogridfsfile returns a resource that can be used to read the stored filephp reflectionparameter returns whether parameter must be callablephp swoole process change the process to be a daemon process.php swoole server shutdown the master server process this function can be called in worker processes.
关注编程学问公众号