Re: Waiting forGMainLoop events
- From: Paul Davis <paul linuxaudiosystems com>
- To: Kip Warner <kip thevertigo com>
- Cc: ML-gtk <gtk-list gnome org>
- Subject: Re: Waiting forGMainLoop events
- Date: Wed, 26 Jun 2013 19:23:26 -0400
by definition you cannot determine if events are ready without something semantically equivalent to poll(2). whether or not you block in that poll-equivalent thing is a different story.
using a main loop that never blocks is a design error. it implies burning cpu time for no reason, which typically only happens when someone can't figure how to integrate "another event source" into the main loop. glib makes this easy for just about kind of event source, so there isn't much of an excuse for this sort of design.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]