PHP - Manual: inotify_queue_len
2025-02-27
(PECL inotify >= 0.1.2)
inotify_queue_len — 如果有待处理事件,返回大于零的数字
可以通过此函数知道 inotify_read() 是否会阻塞。如果返回大于零的数字,表示有待处理的事件,inotify_read() 不会阻塞。
如果有待处理事件,返回大于零的数字。
官方地址:https://www.php.net/manual/en/function.inotify-queue-len.php