提交 288fdcd0 编写于 作者: J Jim Fehlig

libxl: Add comments to libxlDriverPrivate fields

Similar to the QEMU and LXC drivers, annotate the fields of
libxlDriverPrivate struct to indicate the locking rules for
their use.
上级 6cd43d36
...@@ -90,19 +90,26 @@ struct _libxlDriverPrivate { ...@@ -90,19 +90,26 @@ struct _libxlDriverPrivate {
* then lockless thereafter */ * then lockless thereafter */
libxlDriverConfigPtr config; libxlDriverConfigPtr config;
/* Atomic inc/dec only */
unsigned int nactive; unsigned int nactive;
/* Immutable pointers. Caller must provide locking */
virStateInhibitCallback inhibitCallback; virStateInhibitCallback inhibitCallback;
void *inhibitOpaque; void *inhibitOpaque;
/* Immutable pointer, self-locking APIs */
virDomainObjListPtr domains; virDomainObjListPtr domains;
/* Immutable pointer, immutable object */
virDomainXMLOptionPtr xmlopt; virDomainXMLOptionPtr xmlopt;
/* Immutable pointer, self-locking APIs */
virDomainEventStatePtr domainEventState; virDomainEventStatePtr domainEventState;
/* Immutable pointer, self-locking APIs */
virPortAllocatorPtr reservedVNCPorts; virPortAllocatorPtr reservedVNCPorts;
/* Immutable pointer, lockless APIs*/
virSysinfoDefPtr hostsysinfo; virSysinfoDefPtr hostsysinfo;
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册