Re: A newbie question...



>Are there situations where signal-handlers are invoked recursively?

in the generic sense, yes, this can happen. a signal is really just a
way to invoke a lists of closures. a closure is signal handling
function plus its arguments. since the function could generate "emit"
other signals, its quite possible for the handlers for that signal
will be called from the handlers for the "upper level" signal.

its a totally separate question how much or if this happens for the
signals associated with GTK+ widgets. i don't know the answer to that.

>Or can one safely assume that signals are *always* queued somewhere
>and dispatched one after the other?

you can assume that its not multithreaded. but you can't assume that
they are dispatched in a non-recursive fasgion, i think.

--p



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