[PATCH 0/3] Introduce RW locks to virDomainObjList

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



While this is not that critical (hash tables have O(1) time complexity for
lookups), it lays down path towards making virDomainObj using RW locks instead
of mutexes. Still, in my limited testing this showed slight improvement.

Michal Privoznik (3):
  virthread: Introduce virRWLockInitPreferWriter
  virobject: Introduce virObjectRWLockable
  virdomainobjlist: Use virObjectRWLockable

 src/conf/virdomainobjlist.c |  24 ++++----
 src/libvirt_private.syms    |   4 ++
 src/util/virobject.c        | 144 ++++++++++++++++++++++++++++++++++----------
 src/util/virobject.h        |  16 +++++
 src/util/virthread.c        |  35 +++++++++++
 src/util/virthread.h        |   1 +
 6 files changed, 180 insertions(+), 44 deletions(-)

-- 
2.13.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux