[PATCH 0/2] Refactor virMutexInit virRWLockInit and virCondInit

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

 



Implement virMutexInitInternal, virRWLockInitInternal and virCondInitInternal
which include error message reporting.

int virMutexInitInternal(virMutexPtr mutex, bool recursive, bool quite,
                         const char *filename, const char *funcname,
                         size_t linenr)

virMutexInit calls virMutexInitInternal with quite == false;
virMutexInitQuite calls virMutexInitInternal with quite == true.
Same for virRWLockInit and virCondInit.

And remove redundant error messages after virMutexInit from other source files.

Jincheng Miao (2):
  Refactor virMutexInit virRWLockInit and virCondInit
  remove error message when virMutexInit and virCondInit failed

 daemon/remote.c                     |  1 -
 src/conf/interface_conf.c           |  2 -
 src/conf/network_conf.c             |  2 -
 src/conf/node_device_conf.c         |  2 -
 src/conf/nwfilter_conf.c            |  2 -
 src/conf/object_event.c             |  2 -
 src/conf/storage_conf.c             |  2 -
 src/conf/virchrdev.c                |  2 -
 src/esx/esx_vi.c                    | 15 ++----
 src/fdstream.c                      |  2 -
 src/libvirt_private.syms            |  7 ++-
 src/libxl/libxl_driver.c            |  2 -
 src/locking/lock_daemon.c           |  5 --
 src/node_device/node_device_udev.c  |  1 -
 src/nwfilter/nwfilter_learnipaddr.c |  2 -
 src/parallels/parallels_driver.c    |  5 +-
 src/qemu/qemu_agent.c               |  2 -
 src/qemu/qemu_capabilities.c        |  2 -
 src/qemu/qemu_driver.c              |  1 -
 src/qemu/qemu_monitor.c             |  6 +--
 src/remote/remote_driver.c          |  2 -
 src/rpc/virnetclient.c              |  5 +-
 src/test/test_driver.c              |  4 --
 src/util/vireventpoll.c             |  5 +-
 src/util/virlockspace.c             |  4 --
 src/util/virobject.c                |  2 -
 src/util/virthread.c                | 95 ++++++++++++++++++-------------------
 src/util/virthread.h                | 57 +++++++++++++++++-----
 src/xen/xen_driver.c                |  2 -
 tests/commandtest.c                 |  4 +-
 tests/qemumonitortestutils.c        |  2 -
 31 files changed, 103 insertions(+), 144 deletions(-)

-- 
1.8.3.1

--
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]