Re: signals (and disconnecting them)
- From: stian nixia no
- To: "Vadim Berezniker" <kryptolus gmail com>
- Cc: gtk-list gnome org
- Subject: Re: signals (and disconnecting them)
- Date: Mon, 4 Apr 2005 19:01:44 +0200 (CEST)
> stian nixia no wrote:
>
>>I'm not an expert but:
>>
>>Events that are queue'd are not scheduled until glib iterates again, so
>>they will be "lost" yes. Even signals you emit by hand will be "lost"
>>after the handler is unhooked. Atleast logic should be like that.
>>
>>
> I may be a bit crazy but it can make sense to let all the events queued
> for that handler to be processed before disconnecting it.
> I know I could just force all the queued events to be processed before
> disconnecting the handler, but it's not the right thing to do.
Not really, since when you disconnect it, you might free the data
user_data points to, so a new signal after that point would be unsecure.
Else, when would you know that the user_data pointer will never be
mentioned again.
Stian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]