qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v6 0/5] Simplify qobject refcount


From: Marc-André Lureau
Subject: Re: [Qemu-devel] [PATCH v6 0/5] Simplify qobject refcount
Date: Thu, 19 Apr 2018 18:02:26 +0200

Hi

On Thu, Apr 19, 2018 at 5:45 PM, Eric Blake <address@hidden> wrote:
> On 04/19/2018 10:01 AM, Marc-André Lureau wrote:
>> Hi,
>>
>> This series aims to get rid of the distinction between QObject, that
>> must use qobject_incref/qobject_decref and its various derived types
>> that have to use QINCREF/QDECREF. Instead, replace it with
>> qobject_ref/qobject_unref for all types.
>
> Related question: should we do the same thing for qdict_put() vs.
> qdict_put_obj()?  That is, now that we have an easy way to always use
> QOBJECT(), it makes more sense to just have:
>
> QObject *o;
> QDict *d;
> qdict_put(dict, key1, o);
> qdict_put(dict, key2, d);
>
> rather than having to distinguish based on the type of the third argument.
>
> Similar for QList additions.

Good idea, that would be a lovely follow-up indeed.



-- 
Marc-André Lureau



reply via email to

[Prev in Thread] Current Thread [Next in Thread]