Re: deprecating gdk threads

On Mon, 2012-08-06 at 17:28 +0000, Pavel Holejsovsky wrote:
> On Mon, 06 Aug 2012 11:56:48 -0400, Paul Davis wrote:
> > i don't believe that there are any examples in glib/gdk/gtk where a
> > signal handler attached to a signal of a glib/gdk/gtk object will be
> > executed in anything other than the main event loop. glib/gdk/gtk
> > doesn't contain any "thread tunneling" for signal handler dispatch, so
> > the handler is always executed in the same thread that the signal is
> > "emitted" from.
> This is true for glib/gdk/gtk.  But you will get signals from worker 
> threads when you are working with gstreamer.  And AFAIK you will get 
> callbacks from worker threads when using asynchronous Gio operations.

Async GIO callbacks are never directly invoked from GIO worker threads.
They are typically invoked using the (thread-default) main context. They
also don't use the GObject signal mechanism.


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