Re: how many thread process used by rygel



On Mi, 2012-07-18 at 15:11 +0800, Soho Soho123 wrote:
> Dear Jens,
> 
> Can I disable "GLib DBus thread" ?
> As my understanding, if RENDERER ONLY "DBus" is not necessary, right?

Yes, but again, not without patching code:

http://git.gnome.org/browse/rygel/tree/src/rygel/rygel-main.vala

lines 265 and 266 are responsible for the DBus service. However, it
might be that recent GLib always has this thread due to GApplication.

> 
> 
> Thanks!
> 
> Best Regards,
> Soho
> 2012/7/18 Jens Georg <mail jensge org>:
> > On Di, 2012-07-17 at 22:01 +0800, Soho Soho123 wrote:
> >> Dears,
> >>
> >> per observation from Rygel verification,
> >> when I start rygel by "rygel -g 5&", there are 2 threads run on my
> >> target platform.
> >> when I play a MP3 from W7 media player, then there are 6 threads run
> >> on my target platform.
> >> when I stop playing MP3 from W7 media player, then there 2 threads run
> >> on my target platform.
> >>
> >> Does anyone have idea about there 4 threads are started when rygel
> >> playing audio ?
> >> which gstreamer element start thread ?
> >>
> >> and another question,
> >> I can see the main function of rygel,
> >> rygel_main_run(), the function will call g_main_loop_run() to start loop.
> >> why there are 2 threads stated in main function?
> >
> > Rygel itself only ever operates in a single (main) thread. However some
> > of the libraries we use spawn threads on their own:
> >
> > GLib - One for GDBus; that's the two threads you see when Rygel is idle
> > (main thread + GLib DBus thread)
> >
> > GStreamer - A lot while decoding and encoding
> >
> >
> 




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