Waiting forGMainLoop events
- From: Bogdan Lotko <boguslaw lotko chello at>
- To: gtk-list gnome org
- Subject: Waiting forGMainLoop events
- Date: Wed, 26 Jun 2013 19:02:49 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]