Re: gdk threads ...



On Wed, Apr 25, 2012 at 2:50 PM, Chris Vine <chris cvine freeserve co uk> wrote:
> On Wed, 25 Apr 2012 14:39:24 -0400
> Paul Davis <paul linuxaudiosystems com> wrote:
>> i've never seen anyone remark that  attaching a timeout (or other
>> source) to a main loop is thread safe. if it is, then great.  i was
>> under the impression that g_idle_add() was special ...
>
> All the main loop sources are thread safe (and the glib documentation
> explicitly so states).

the issue is not the source. its *attaching* it that is the potential
source of problems. g_source_attach()'s docs make no mention of
whether it can be done safely from another thread. that's also true of
the layers above it like g_timeout_add() etc.

where is the explicit declaration that you're referring to?


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