首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

eio_event_loop

(PECL eio >= 0.0.1dev)

eio_event_loop — Polls libeio until all requests proceeded

Description

代码语言:javascript
复制
bool eio_event_loop ( void )

eio_event_loop() polls libeio until all requests proceeded.

Parameters

This function has no parameters.

Return Values

eio_event_loop() returns TRUE on success or FALSE on error.

Examples

Example #1 eio_event_loop() example

代码语言:javascript
复制
<?php
$temp_filename?=?"eio-temp-file.tmp";
touch($temp_filename);

/*?Is?called?when?eio_chmod()?finished?*/
function?my_chmod_callback($data,?$result)?{
????global?$temp_filename;

????if?($result?==?0?&&?!is_readable($temp_filename)?&&?is_writable($temp_filename))?{
????????echo?"eio_chmod_ok";
????}

????@unlink($temp_filename);
}

eio_chmod($temp_filename,?0200,?EIO_PRI_DEFAULT,?"my_chmod_callback");
eio_event_loop();
?>

The above example will output something similar to:

代码语言:javascript
复制
eio_chmod_ok
 

See Also

  • eio_poll

← eio_dup2

eio_fallocate →

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

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

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com