[dbus] The meaning of private?

Simon Hong simon.hong81 at gmail.com
Wed Mar 14 23:37:44 PDT 2012


Thank you Pavel,

What is the benefit of using cached connection?
For speed?

On Thu, Mar 15, 2012 at 3:22 PM, Pavel Strashkin
<pavel.strashkin at gmail.com>wrote:

> Hi Simon,
>
> That is not so difficult as it looks like. That is just a cache.
> dbus_bus_get either returns cached instance (system or session bus) or
> caches it and then returns. dbus_bus_get_private always returns new
> instance without any caching.
>
> 2012/3/14 Simon Hong <simon.hong81 at gmail.com>:
> > Dear folks,
> >
> > What is the meaning of the private in the "dbus_bus_get_private()"?
> > In the api (dbus_bus_get()) reference, it said "connection to the bus
> > already exists, then that connection is returned".
> >
> > How the connection is already existed??
> > I can't understand...
> >
> > Any explanation will be happy.
> >
> > Thank you
> > --
> > ======================================
> > Simon Hong
> > "Secret of success is consistency to purpose"
> >
> >
> > _______________________________________________
> > dbus mailing list
> > dbus at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/dbus
> >
>



-- 
======================================
Simon Hong
"Secret of success is consistency to purpose"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20120315/2fa54404/attachment.html>


More information about the dbus mailing list