Re: signals (and disconnecting them)



On Mon, Apr 04, 2005 at 06:18:57PM +0200, stian nixia no wrote:
> 
> 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.

Please don't confuse signals and events (the difference is
explained in the FAQ). Signals don't need main loop and they
are not queued, they work synchronously.

To the original question: if you emit a signal and then
disconnect the handler, the signal is already delivered at
the time you are disconnecting it.

Yeti


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?



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