[libvirt] [PATCH 1/4] struct _parallelsConn: Mark @domains as immutable pointer
Michal Privoznik
mprivozn at redhat.com
Wed Apr 22 16:35:31 UTC 2015
The pointer does not change throughout the while life of a
parallels connection. Mark it as such.
Signed-off-by: Michal Privoznik <mprivozn at 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
More information about the libvir-list
mailing list