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

search for in the

inotify_read> <inotify_init
Last updated: Fri, 13 Nov 2009

view this page in

inotify_queue_len

(PECL inotify >= 0.1.2)

inotify_queue_len待機中のイベントがある場合に正の数を返す

説明

int inotify_queue_len ( resource $inotify_instance )

この関数で、inotify_read() がブロックされるかどうかを知ることができます。 ゼロより大きい数が返された場合は待機中のイベントがあることを意味し、 この場合 inotify_read() はブロックされません。

パラメータ

inotify_instance

inotify_init() が返すリソース

返り値

待機中のイベントがある場合に正の数を返します。

参考

  • inotify_init() - inotify インスタンスを初期化する
  • stream_select() - select() システムコールと同等の操作を、 ストリームの配列に対して tv_sec と tv_usec で指定されたタイムアウト時間をもって行う
  • stream_set_blocking() - ストリームのブロックモードを有効にする / 解除する



add a note add a note User Contributed Notes
inotify_queue_len
There are no user contributed notes for this page.

inotify_read> <inotify_init
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites