Re: gdk threads ...

On Wed, Apr 25, 2012 at 3:28 PM, Chris Vine <chris cvine freeserve co uk> wrote:

> If g_source_attach() is not thread safe, then g_idle_add() is not
> threads safe: it invokes g_source_attach() in the same way that the
> other *_add()'s do. Idle sources are just another source, albeit ones
> which fire immediately they are reached by the dispatcher in the event
> queue. If you look at the source you will see that g_source_attach()
> invokes the main loop's mutex and that the main loop is thread safe.

not that this really hurts us much, but the fact that this invokes a
mutex is deeply disappointing.

thanks for the doc pointer.

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