On Fri, Feb 01, 2013 at 11:18:32 +0000, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" <berrange@xxxxxxxxxx> > > To allow modifications to the lists to be synchronized, convert > virPCIDeviceList and virUSBDeviceList into virObjectLockable > classes. The locking, however, will not be self-contained. The > users of these classes will have to call virObjectLock/Unlock > in the critical regions. > > Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx> > --- > src/libvirt_private.syms | 2 -- > src/lxc/lxc_hostdev.c | 4 ++-- > src/qemu/qemu_driver.c | 6 +++--- > src/qemu/qemu_hostdev.c | 20 ++++++++++---------- > src/qemu/qemu_hotplug.c | 4 ++-- > src/util/virpci.c | 35 ++++++++++++++++++++++++++--------- > src/util/virpci.h | 2 +- > src/util/virusb.c | 48 ++++++++++++++++++++++++++++++++---------------- > src/util/virusb.h | 2 +- > 9 files changed, 77 insertions(+), 46 deletions(-) ACK Jirka -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list