提交 376b9779 编写于 作者: M Michal Privoznik

struct _virNetworkDriverState: Annotate items

In order to drop network driver lock, lets annotate which
structure items are immutable, which have self-locking
APIs and so on.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 172acef4
......@@ -34,16 +34,23 @@
struct _virNetworkDriverState {
virMutex lock;
/* Immutable pointer, self-locking APIs */
virNetworkObjListPtr networks;
/* Immutable pointers, Immutable objects */
char *networkConfigDir;
char *networkAutostartDir;
char *stateDir;
char *pidDir;
char *dnsmasqStateDir;
char *radvdStateDir;
/* Require lock to get a reference on the object,
* lockless access thereafter
*/
dnsmasqCapsPtr dnsmasqCaps;
/* Immutable pointer, self-locking APIs */
virObjectEventStatePtr networkEventState;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册