Waiting forGMainLoop events

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

 



Hello,

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

the following pseudo-code illustrates the problem:

while( notEndLoop )
{
   waitForEvent();

   lockMutex;

   // Run a single iteration
   g_main_context_iteration( context, false );

  unlockMutex
}

Please note, that I have to lock the mutex before running an iteration.

Thank you for your help

with best regards,

bogdan

_______________________________________________
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