Re: signals (and disconnecting them)
- From: Michael Natterer <mitch gimp org>
- To: Vadim Berezniker <kryptolus gmail com>
- Cc: gtk-list gnome org
- Subject: Re: signals (and disconnecting them)
- Date: Mon, 04 Apr 2005 19:05:17 +0200
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.
ciao,
--mitch
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]