[pygtk] Does gobject.idle_add guarantee execution order?
Murray Cumming
murrayc at murrayc.com
Sun Dec 9 01:14:29 WST 2007
On Sat, 2007-12-08 at 08:40 -0600, skip at pobox.com wrote:
> Christopher> If I do something like
>
> Christopher> gobject.idle_add(foo)
> Christopher> gobject.idle_add(must_run_after_foo)
>
> Christopher> Then am I guaranteed that these will indeed happen in the
> Christopher> expected order?
>
> If the documentation doesn't state it, I don't think you can assume it.
> Yuri showed one way to get the behavior you wanted.
I also know that the order is definitely not guaranteed if you use
different priorities, so you need to be careful that a progress notifier
(sent often) could be called after an end notifier (called once).
--
murrayc at murrayc.com
www.murrayc.com
www.openismus.com
More information about the pygtk
mailing list