[PATCH 1/4] struct _parallelsConn: Mark @domains as immutable pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The pointer does not change throughout the while life of a
parallels connection. Mark it as such.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/parallels/parallels_utils.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/parallels/parallels_utils.h b/src/parallels/parallels_utils.h
index 5731381..4797794 100644
--- a/src/parallels/parallels_utils.h
+++ b/src/parallels/parallels_utils.h
@@ -57,7 +57,10 @@
 
 struct _parallelsConn {
     virMutex lock;
+
+    /* Immutable pointer, self-locking APIs */
     virDomainObjListPtr domains;
+
     PRL_HANDLE server;
     PRL_UINT32 jobTimeout;
     virStoragePoolObjList pools;
-- 
2.0.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]