]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Rename virObjectLockRead to virObjectRWLockRead
authorJohn Ferlan <jferlan@redhat.com>
Fri, 28 Jul 2017 13:57:04 +0000 (09:57 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 15 Aug 2017 01:41:59 +0000 (21:41 -0400)
commit99a72b3eb44d892636dee85b52aa124f6e0642ff
tree12808da3f5166a23bc16c8e3656a047146e6a2c0
parent40cc355c9223e17b54b66fdaedd93e9f6c669704
util: Rename virObjectLockRead to virObjectRWLockRead

Since the class it represents is based on virObjectRWLockableClass
and in order to make sure we differentiate just in case anyone somehow
believes they could use virObjectLockRead for a virObjectLockableClass,
let's rename the API to use the RW in the name. Besides the RW locks
refer to pthread_rwlock_{init|rdlock|wrlock|unlock|destroy} while the
other locks refer to pthread_mutex_{init|lock|unlock|destroy}.

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