]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Introduce and use virObjectRWUnlock
authorJohn Ferlan <jferlan@redhat.com>
Fri, 28 Jul 2017 16:03:50 +0000 (12:03 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 15 Aug 2017 01:41:59 +0000 (21:41 -0400)
commit045d712c4bb7ce2923a4e2508dc43b0448cea357
treed3917a98ce8dd4c08f657442bdd1290b79d6195b
parentbf09f002b180d14af2fa0af86445bbf140851f30
util: Introduce and use virObjectRWUnlock

Rather than overload virObjectUnlock as commit id '77f4593b' has
done, create a separate virObjectRWUnlock API that will force the
consumers to make the proper decision regarding unlocking the
RWLock's. Similar to the RWLockRead and RWLockWrite, use the
virObjectGetRWLockableObj helper. This restores the virObjectUnlock
code to using the virObjectGetLockableObj.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/virdomainobjlist.c
src/libvirt_private.syms
src/util/virobject.c
src/util/virobject.h