0
我有一個wxPython應用程序,它使用pyinotify(通過ThreadedNotifier)來檢查某個文件何時被修改。發生這種情況時,應用程序會停止觀看該文件並執行一些操作。一切工作正常,除了經常調用ThreadedNotifier.stop()需要一個明顯的時間,大約4秒...其他時間,它立即退出。
其他人都遇到過嗎?這是預期的嗎?Slow pyinotify.ThreadedNotifier.stop()
(Xubuntu的9.04)
剛剛發現一個「def check_events(self,timeout = 4000)」pyinotify內..謝謝你的提示! – Joril 2010-01-05 12:35:11
提示通常是你所需要的:)儘管它很有幫助。 – extraneon 2010-01-05 13:00:35