Re: keep an io_channel from wasting my time?



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]