]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Fix comment about virCgroupPtr locking rules in QEMU driver
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 7 Feb 2013 16:42:37 +0000 (16:42 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 8 Feb 2013 11:34:25 +0000 (11:34 +0000)
The virCgroupPtr instance APIs are safe to use without locking
in the QEMU driver, since all internal state they rely on is
immutable. Update the comment to reflect this.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/qemu/qemu_conf.h

index 60c410940ee25240354d9b61696fa7467bcf284d..8fada4e706cc43ff1c9c7d048c5c4d6731570fad 100644 (file)
@@ -164,7 +164,7 @@ struct _virQEMUDriver {
     /* Atomic increment only */
     int nextvmid;
 
-    /* Immutable pointer. Unsafe APIs XXX */
+    /* Immutable pointer. Immutable object */
     virCgroupPtr cgroup;
 
     /* Atomic inc/dec only */