Re: Waiting forGMainLoop events



the OP asked:

    Is it possible to wait for GMainLoop event  without processing them?

query polls but does not process events. only dispatch does that.



On Wed, Jun 26, 2013 at 7:09 PM, Kip Warner <kip thevertigo com> wrote:
On Wed, 2013-06-26 at 19:04 -0400, Paul Davis wrote:
> while (1) {
>   call prepare
>   call query, which will block.
>   do stuff.
>   then call dispatch.
>   do more stuff.
> }

g_main_context_query () polls.

--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com



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