mirror of https://gitee.com/openkylin/libvirt.git
Fix comment about virCgroupPtr locking rules in QEMU driver
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>
This commit is contained in:
parent
9cceb0fc35
commit
5b984370f6
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue