array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.inotify-queue-len.php', 1 => 'inotify_queue_len', ), 'up' => array ( 0 => 'ref.inotify.php', 1 => 'Inotify 関数', ), 'prev' => array ( 0 => 'function.inotify-init.php', 1 => 'inotify_init', ), 'next' => array ( 0 => 'function.inotify-read.php', 1 => 'inotify_read', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/inotify/functions/inotify-queue-len.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL inotify >= 0.1.2)
inotify_queue_len — 待機中のイベントがある場合に正の数を返す
この関数で、inotify_read() がブロックされるかどうかを知ることができます。 ゼロより大きい数が返された場合は待機中のイベントがあることを意味し、 この場合 inotify_read() はブロックされません。
待機中のイベントがある場合に正の数を返します。