1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

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: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2015-03-10 15:42:18 +01:00
parent 172acef486
commit 376b97799e

View File

@ -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;
};