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

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



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

Signed-off-by: Michal Privoznik <mprivozn redhat com>
---
 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


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