Re: [systemd-devel] [RFC][PATCH] sd-bus: split ref-counting of queues from ref-counting of the rest of the sd-bus object

2014-03-23 Thread Tom Gundersen
On Sun, Mar 23, 2014 at 11:50 PM, David Herrmann wrote: > On Sun, Mar 23, 2014 at 4:49 PM, Tom Gundersen wrote: >> Introduce a new ref-count, n_ref_queues, which only protects the {r,w}queue >> of >> a bus, and introduce bus_{un,}ref(), which are only available internally, and >> which do not pr

Re: [systemd-devel] [RFC][PATCH] sd-bus: split ref-counting of queues from ref-counting of the rest of the sd-bus object

2014-03-23 Thread David Herrmann
Hi On Sun, Mar 23, 2014 at 4:49 PM, Tom Gundersen wrote: > Introduce a new ref-count, n_ref_queues, which only protects the {r,w}queue of > a bus, and introduce bus_{un,}ref(), which are only available internally, and > which do not protect these queues. > > Make sure that sd_bus_message object d

[systemd-devel] [RFC][PATCH] sd-bus: split ref-counting of queues from ref-counting of the rest of the sd-bus object

2014-03-23 Thread Tom Gundersen
Introduce a new ref-count, n_ref_queues, which only protects the {r,w}queue of a bus, and introduce bus_{un,}ref(), which are only available internally, and which do not protect these queues. Make sure that sd_bus_message object do not call sd_bus_ref(), but only the internal bus_ref(). This is ok