qom: Use atomics for object refcounting
commitf08c03f3c404e85a2b81890191ccb48dc1ecc157
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 2 Jul 2013 09:36:39 +0000 (2 11:36 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jul 2013 15:42:49 +0000 (4 17:42 +0200)
treed5434b5d7304f9da641af763db654d032fa500b3
parent856d72454f03aea26fd61c728762ef9cd1d71512
qom: Use atomics for object refcounting

Object reference counts will soon be changed outside the BQL. So we need
to use atomics in object_ref/unref.

Based on a patch by Liu Ping Fan.

Signed-off-by: Liu Ping Fan <qemulist@gmail.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qom/object.c