g_idle_add and thread safety

2007-06-06 Thread Gabriele Greco
I know GTK APIs are not thread safe, I've an app with a thread doing a massive job that wants to update the gui status every few cycles, to do so I remembered an old post speaking about g_idle_add. The question I have and which I didn't find answers both googling, both looking at the sources

Re: g_idle_add and thread safety

2007-06-06 Thread Fernando ApesteguĂ­a
On 6/4/07, Gabriele Greco [EMAIL PROTECTED] wrote: I know GTK APIs are not thread safe, I've an app with a thread doing a massive job that wants to update the gui status every few cycles, to do so I remembered an old post speaking about g_idle_add. The question I have and which I didn't find

Re: g_idle_add and thread safety

2007-06-06 Thread jcupitt
On 6/4/07, Gabriele Greco [EMAIL PROTECTED] wrote: The question I have and which I didn't find answers both googling, both looking at the sources is if g_idle_add can be called without any extra mutex/lock from another thread. Yes, this works fine. You do need to init the threads system, but