[libvirt] [PATCH 5/7] util: Introduce and use virObjectRWUnlock
Pavel Hrdina
phrdina at redhat.com
Fri Jul 28 17:07:04 UTC 2017
On Fri, Jul 28, 2017 at 12:38:59PM -0400, John Ferlan wrote:
> 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. This restores the virObjectUnlock code to using the
> virObjectGetLockableObj as well.
>
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
> src/conf/virdomainobjlist.c | 36 ++++++++++++++++++------------------
> src/libvirt_private.syms | 1 +
> src/util/virobject.c | 41 +++++++++++++++++++++++++++--------------
> src/util/virobject.h | 4 ++++
> 4 files changed, 50 insertions(+), 32 deletions(-)
The virObjectLockRead and virObjectLockWrite should be probably renamed
to virObjectRWLockRead and virObjectRWLockWrite for consistency with the
virObjectRWUnlock.
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170728/602c90f3/attachment-0001.sig>
More information about the libvir-list
mailing list