On Wed, 17 May 2000, you wrote:
> Hey, rather than putting out a new version of fam with actual bug fixes,
> or rewriting imon's hooks into the filesystem code, the last few days I've
> been writing a tutorial on how to use fam with Qt and GTK+. It's quite
> possible that I'm advising people to do something stupid; if you're a Qt or
> GTK+ fiend, you want to review it for technical bogosity?
About the Qt example. Is it required to make the filedescriptor non-blocking?
It isn't necassery for QSocketNotifier and I think it hurts for
Client::readEvent() in the case when their is only a half event available.
In theory you can end up busy-waiting in the while-loop, which is bad for
your load. In practice these events are probably delivered as a whole anyway,
so I don't think it's critical, but better safe than sorry.
Cheers,
Waldo
--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx
|