Instantaneous status on Linux, Windows (GSOC 2009)

Bryan O'Sullivan bos at serpentine.com
Wed Mar 11 14:01:45 CDT 2009


On Wed, Mar 11, 2009 at 11:30 AM, Stefan Rusek <stefan at rusek.org> wrote:

>
> On Windows, it is pretty simple to get notifications. In C/C++/WIN32
> land it is as simple as calling a function and waiting on the handle
> it returns. In .net there is a class System.IO.FileSystemWatcher that
> will do this for you.
>

That's not at all the problem. The difficulties lie in making those calls
infrequently, so that you're not wasting vast amounts of CPU time; in
dealing sensibly with stale notifications (i.e. a file creation notification
that is no longer valid because the file it referred to was deleted by the
time we process the event); and in keeping the poor coder's brain and the
software's data structures straight while juggling these considerations.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial-devel/attachments/20090311/2ae5609d/attachment.htm 


More information about the Mercurial-devel mailing list