Re: keep an io_channel from wasting my time?
- From: Havoc Pennington <hp redhat com>
- To: Jeff Abrahamson <jeff purple com>
- Cc: gtk-devel-list gnome org
- Subject: Re: keep an io_channel from wasting my time?
- Date: Fri, 13 Dec 2002 20:28:10 -0500
Hi,
Questions about using GTK should go to gtk-list or gtk-app-devel-list,
not this list.
On Fri, Dec 13, 2002 at 07:07:17PM -0500, Jeff Abrahamson wrote:
> What I'd like is for the output handler not to be called unless both
> the descriptor is ready *and* there's data to write.
Is it going to read your mind? ;-)
It has no way of knowing if your app wants to write data...
> Perhaps the only solution is for the output handler to de-register
> itself every time the work queue empties and to have the enqueue
> operation re-register the handler. But this seems a horrible kludge.
This is how it's supposed to work - you add the output handler only
when you have stuff to output.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]