mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user