[PATCH 0/7] Drop virAtomic module

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

 



Inspired by:

https://www.redhat.com/archives/libvir-list/2020-January/msg01446.html

Instead of using:

  #define virAtomicIntXXX g_atomic_int_XXX

let's use the GLib directly and drop needless defines.

Michal Prívozník (7):
  test_driver: Replace virAtomicIntAdd() with virAtomicIntInc()
  tests: Drop viratomictest
  src: Replace virAtomicIntGet() with g_atomic_int_get()
  src: Replace virAtomicIntSet() with g_atomic_int_set()
  src: Replace virAtomicIntInc() with g_atomic_int_add()
  src: Drop virAtomicIntDecAndTest() with g_atomic_int_dec_and_test()
  Drop virAtomic module

 configure.ac                      |   1 -
 m4/virt-atomic.m4                 |  77 -------------
 src/Makefile.am                   |   6 -
 src/libvirt_atomic.syms           |  11 --
 src/libxl/libxl_domain.c          |   5 +-
 src/libxl/libxl_driver.c          |   3 +-
 src/lxc/lxc_process.c             |   7 +-
 src/nwfilter/nwfilter_dhcpsnoop.c |  33 +++---
 src/qemu/qemu_conf.c              |   1 -
 src/qemu/qemu_domain.c            |   1 -
 src/qemu/qemu_process.c           |   7 +-
 src/test/test_driver.c            |   7 +-
 src/util/Makefile.inc.am          |   2 -
 src/util/viratomic.c              |  35 ------
 src/util/viratomic.h              | 130 ----------------------
 src/util/virobject.c              |   9 +-
 src/util/virprocess.c             |   3 +-
 src/util/virsystemd.c             |  17 ++-
 tests/Makefile.am                 |   5 -
 tests/viratomictest.c             | 175 ------------------------------
 20 files changed, 41 insertions(+), 494 deletions(-)
 delete mode 100644 m4/virt-atomic.m4
 delete mode 100644 src/libvirt_atomic.syms
 delete mode 100644 src/util/viratomic.c
 delete mode 100644 src/util/viratomic.h
 delete mode 100644 tests/viratomictest.c

-- 
2.24.1





[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