Re: signals (and disconnecting them)

On Tue, 2005-04-05 at 01:04 +0900, Vadim Berezniker wrote:
> Let's say we have the following code:
> some_func();
> g_signal_handlers_disconnect_by_func(obj, func, param);
> If some_func() causes a signal to be emitted on "obj" and then almost
> immediately I disconnect the handler, will my handler receive the
> event before being disconnected or is there a chance it might not.
> (for example if the event is queued).

When g_signal_emit() returns all signal handlers have been
called. There is no acynchronous processing at all.


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