Re: GSource object lifetime

2011-05-28 Thread Stefan Kost
Am 04.05.2011 00:03, schrieb Thomas Stover: > On Tue, 3 May 2011 22:50:38 +0200, Tadej Borovšak > wrote: > >> All that being said, maybe you could "cook up" a patch for API docs >> with this info? I'm sure people would find it useful. >> > > Is there a starting place to read how to go about doin

Re: GSource object lifetime

2011-05-03 Thread Thomas Stover
On Tue, 3 May 2011 22:50:38 +0200, Tadej Borovšak wrote: > All that being said, maybe you could "cook up" a patch for API docs > with this info? I'm sure people would find it useful. > Is there a starting place to read how to go about doing that? -- www.thomasstover.com FLYNN LIVES!

Re: GSource object lifetime

2011-05-03 Thread Tadej Borovšak
Hi. > That did help (I think I still have an unrelated leak). I think a few > things could be made more clear in the docs (I'm not 100% sure I'm correct > either): I must agree with you here. Docs are a bit scarce on this topic. But ... > -A newly created source (from g_idle_source_new() ) has a

Re: GSource object lifetime

2011-05-03 Thread Thomas Stover
On Tue, 3 May 2011 22:06:02 +0200, Tadej Borovšak wrote: > Hi. > >> I'm repetitively calling g_idle_source_new(), g_source_set_callback(), >> g_source_attach() to get an idle callback to run in a separate thread. >> The >> callback in question always exits with FALSE. > > Do you call g_source_un

Re: GSource object lifetime

2011-05-03 Thread Tadej Borovšak
Hi. > I'm repetitively calling g_idle_source_new(), g_source_set_callback(), > g_source_attach() to get an idle callback to run in a separate thread. The > callback in question always exits with FALSE. Do you call g_source_unref() after attaching it? Cheers, Tadej. -- Tadej Borovšak tadeboro.b

Re: GSource object lifetime

2011-05-03 Thread Colomban Wendling
Le 03/05/2011 20:49, Thomas Stover a écrit : > trying to stop a memory leak (2.24.1 x86_64)... > > I'm repetitively calling g_idle_source_new(), g_source_set_callback(), > g_source_attach() to get an idle callback to run in a separate thread. The > callback in question always exits with FALSE.

GSource object lifetime

2011-05-03 Thread Thomas Stover
trying to stop a memory leak (2.24.1 x86_64)... I'm repetitively calling g_idle_source_new(), g_source_set_callback(), g_source_attach() to get an idle callback to run in a separate thread. The callback in question always exits with FALSE. The docs for GSourceFunc() state: ... Returns :