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

[libvirt] [PATCH 0/3] Introduce RW locks to virDomainObjList



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


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