Re: [Qemu-devel] [PATCH 1/2] object: introduce Qref to abstract the refcnt interface

2013-07-15 Thread Paolo Bonzini
Il 15/07/2013 04:49, Liu Ping Fan ha scritto: > Qref is similar to kref. It hides the refcnt detail and provides > a common interface. And this patch is based on the idiom of refcnt, > and adopts some optimization about memory model, which finally > falls back on gcc implementation. > > Signed-off

[Qemu-devel] [PATCH 1/2] object: introduce Qref to abstract the refcnt interface

2013-07-14 Thread Liu Ping Fan
Qref is similar to kref. It hides the refcnt detail and provides a common interface. And this patch is based on the idiom of refcnt, and adopts some optimization about memory model, which finally falls back on gcc implementation. Signed-off-by: Liu Ping Fan --- include/qom/object.h | 34