tecknophreak
08-05-2003, 03:22 PM
If I have a gtk_timeout_add and a g_signal_connect(writing this, I have to check for g_timeout_add), which one has higher priority?
Two examples,
Someone presses a button causing a signal, while the handler's handling, a timeout occurs. Does the signal handler get interrupted by the timeout handler or does the signal handler complete and the timeout handler get called after the signal handler finishes?
From reading about these handlers, it looks like the signal handler will finish then it will go back into gtk_main which will call the timeout handler.
Is this right?
The second example was just the handlers situation above reversed.
Two examples,
Someone presses a button causing a signal, while the handler's handling, a timeout occurs. Does the signal handler get interrupted by the timeout handler or does the signal handler complete and the timeout handler get called after the signal handler finishes?
From reading about these handlers, it looks like the signal handler will finish then it will go back into gtk_main which will call the timeout handler.
Is this right?
The second example was just the handlers situation above reversed.