Re: Waiting forGMainLoop events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






On Wed, Jun 26, 2013 at 6:49 PM, Kip Warner <kip@xxxxxxxxxxxxxx> wrote:
On Wed, 2013-06-26 at 18:43 -0400, Paul Davis wrote:
> geez, does nobody read docs any more ?

Chill.

> https://developer.gnome.org/glib/2.30/glib-The-Main-Event-Loop.html#g-main-context-pending

> sorry wrong link. same page, near top, see "Customizing the main loop
> iteration"
>
I am probably just not reading it right, but how can a caller use the
component functions to do what he is asking, namely check if there are
events, blocking until there are some, and doing so without polling?

while (1) {
  call prepare
  call query, which will block.
  do stuff.
  then call dispatch.
  do more stuff.
}

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux