On 07/11/2012 07:35 AM, Daniel P. Berrange wrote:
From: Daniel P. Berrange berra...@redhat.com
This introduces a fairly basic reference counted virObject type
and an associated virClass type, that use atomic operations for
ref counting.
+void *virObjectNew(virClassPtr klass)
+{
+
On 07/17/2012 02:25 PM, Eric Blake wrote:
On 07/11/2012 07:35 AM, Daniel P. Berrange wrote:
From: Daniel P. Berrange berra...@redhat.com
This introduces a fairly basic reference counted virObject type
and an associated virClass type, that use atomic operations for
ref counting.
+void
On Fri, Jul 13, 2012 at 04:38:26PM -0600, Eric Blake wrote:
On 07/11/2012 07:35 AM, Daniel P. Berrange wrote:
From: Daniel P. Berrange berra...@redhat.com
This introduces a fairly basic reference counted virObject type
and an associated virClass type, that use atomic operations for
ref
On 07/16/2012 09:52 AM, Daniel P. Berrange wrote:
Object references can be manipulated with
virObjectRef(conn)
virObjectUnref(conn)
The latter returns a true value, if the object has been
freed (ie its ref count hit zero)
Should these return the resulting refcount, and/or add a
On 07/11/2012 07:35 AM, Daniel P. Berrange wrote:
From: Daniel P. Berrange berra...@redhat.com
This introduces a fairly basic reference counted virObject type
and an associated virClass type, that use atomic operations for
ref counting.
In a global initializer (recommended to be invoked
From: Daniel P. Berrange berra...@redhat.com
This introduces a fairly basic reference counted virObject type
and an associated virClass type, that use atomic operations for
ref counting.
In a global initializer (recommended to be invoked using the
virOnceInit API), a virClass type must be