]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNetworkObjListPtr: Make APIs self-locking
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 26 Feb 2015 07:51:55 +0000 (08:51 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 11 Mar 2015 15:58:49 +0000 (16:58 +0100)
commit53881c70bcf4376121996de4e138d2672554c1a9
tree4e770fe2abd2d8fc02daa33a9fe712796fdd095c
parent3aa3e072bd64260869b4f7a104aeaec77270374b
virNetworkObjListPtr: Make APIs self-locking

Every API that touches internal structure of the object must lock
the object first. Not every API that has the object as an
argument needs to do that though. Some APIs just pass the object
to lower layers which, however, must lock the object then. Look
at the code, you'll get my meaning soon.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/network_conf.c