c - Prevent propagation of GSignal to further registered GCallbacks -
How to call signal handlers in front of the first signal handler callback in GS ignal?
For example, I register three functions - func1, func2 and func3 for the same signal "mysignal". If func1 is called first, how can I be called by fun, stop func2 and func3?
It should not be made permanent It should be runtime i.e. func1 can decide whether Func2 and func3 can get callback based on input parameters.
g_sign_log_stop_mission_by_name () and g_signal_stop_emission () fixes this problem.
Calling g_signal_stop_emission_by_name () from func1 prevents further spread of func2 and func3.
Comments
Post a Comment