downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

eio_fallocate> <eio_dup2
[edit] Last updated: Fri, 26 Apr 2013

view this page in

eio_event_loop

(PECL eio >= 0.0.1dev)

eio_event_loopPolls libeio until all requests proceeded

Description

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

<?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 == && !is_readable($temp_filename) && is_writable($temp_filename)) {
        echo 
"eio_chmod_ok";
    }

    @
unlink($temp_filename);
}

eio_chmod($temp_filename0200EIO_PRI_DEFAULT"my_chmod_callback");
eio_event_loop();
?>

The above example will output something similar to:

eio_chmod_ok
 

See Also

  • eio_poll


add a note add a note User Contributed Notes eio_event_loop - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites