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, 17 May 2013

view this page in

eio_event_loop

(PECL eio >= 0.0.1dev)

eio_event_loopBoucle libeio tant que les requêtes s'exécutent

Description

bool eio_event_loop ( void )

eio_event_loop() boucle libeio tant que les requêtes s'exécutent.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

eio_event_loop() retourne TRUE en cas de succès, FALSE si une erreur survient.

Exemples

Exemple #1 Exemple avec eio_event_loop()

<?php
$temp_filename 
"eio-temp-file.tmp";
touch($temp_filename);

/* Appelé lorsque eio_chmod() aura terminé */
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();
?>

L'exemple ci-dessus va afficher quelque chose de similaire à :

eio_chmod_ok
 

Voir aussi

  • 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