|
Message-ID: <20110906063646.GA4603@openwall.com> Date: Tue, 6 Sep 2011 10:36:46 +0400 From: Solar Designer <solar@...nwall.com> To: john-dev@...ts.openwall.com Subject: Re: Aleksey's Status Report #17 Aleksey, On Tue, Sep 06, 2011 at 10:19:50AM +0400, Solar Designer wrote: > Isn't QFileSystemWatcher implemented with a timer too? Or does it > start a separate thread, which blocks on read from the file? Sorry, this last guess is nonsense - read(2) doesn't block on EOF on a regular file, it merely returns 0. Even "tail -f" simply polls for more data after sleeping for a while (typically for 1 second) for that reason. So it is fairly clear that QFileSystemWatcher has to be timer-based. > On recent Linux there's inotify, but it's not portable, so I doubt that > Qt uses it. And even if it did, there would be a fallback to something > else on other systems, which we need to consider. Alexander
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.