diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c index 9f82c99338..7b76c74622 100644 --- a/daemon/libvirtd.c +++ b/daemon/libvirtd.c @@ -50,7 +50,6 @@ #include "virconf.h" #include "virnetlink.h" #include "virnetserver.h" -#include "threads.h" #include "remote.h" #include "remote_driver.h" #include "virhook.h" diff --git a/daemon/libvirtd.h b/daemon/libvirtd.h index b04cc7112a..69a77ea225 100644 --- a/daemon/libvirtd.h +++ b/daemon/libvirtd.h @@ -34,7 +34,7 @@ # include "remote_protocol.h" # include "qemu_protocol.h" # include "virlog.h" -# include "threads.h" +# include "virthread.h" # if HAVE_SASL # include "virnetsaslcontext.h" # endif diff --git a/src/Makefile.am b/src/Makefile.am index 188c9c814a..8afcb3186a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -53,9 +53,6 @@ augeastest_DATA = # These files are not related to driver APIs. Simply generic # helper APIs for various purposes UTIL_SOURCES = \ - util/threads.c util/threads.h \ - util/threads-pthread.h \ - util/threads-win32.h \ util/uuid.c util/uuid.h \ util/util.c util/util.h \ util/viralloc.c util/viralloc.h \ @@ -86,6 +83,9 @@ UTIL_SOURCES = \ util/virstatslinux.c util/virstatslinux.h \ util/virstoragefile.c util/virstoragefile.h \ util/virsysinfo.c util/virsysinfo.h \ + util/virthread.c util/virthread.h \ + util/virthreadpthread.h \ + util/virthreadwin32.h \ util/virthreadpool.c util/virthreadpool.h \ util/virtypedparam.c util/virtypedparam.h \ util/xml.c util/xml.h \ @@ -126,7 +126,7 @@ $(srcdir)/util/virkeymaps.h: $(srcdir)/util/keymaps.csv \ $(srcdir)/util/virkeycode-mapgen.py $(AM_V_GEN)$(PYTHON) $(srcdir)/util/virkeycode-mapgen.py <$(srcdir)/util/keymaps.csv >$@ -EXTRA_DIST += util/threads-pthread.c util/threads-win32.c +EXTRA_DIST += util/virthreadpthread.c util/virthreadwin32.c # Internal generic driver infrastructure NODE_INFO_SOURCES = nodeinfo.h nodeinfo.c diff --git a/src/conf/device_conf.h b/src/conf/device_conf.h index 09d6be976f..c1bf096b68 100644 --- a/src/conf/device_conf.h +++ b/src/conf/device_conf.h @@ -29,7 +29,7 @@ # include "internal.h" # include "util.h" -# include "threads.h" +# include "virthread.h" # include "virbuffer.h" enum virDeviceAddressPciMulti { diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index e267b19d36..c7a19ae251 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -33,7 +33,7 @@ # include "storage_encryption_conf.h" # include "cpu_conf.h" # include "util.h" -# include "threads.h" +# include "virthread.h" # include "virhash.h" # include "virsocketaddr.h" # include "nwfilter_params.h" diff --git a/src/conf/interface_conf.h b/src/conf/interface_conf.h index 1749629bbb..d6f98f1b96 100644 --- a/src/conf/interface_conf.h +++ b/src/conf/interface_conf.h @@ -30,7 +30,7 @@ # include "internal.h" # include "util.h" -# include "threads.h" +# include "virthread.h" /* There is currently 3 types of interfaces */ diff --git a/src/conf/network_conf.h b/src/conf/network_conf.h index 4d70fe65b0..4c634ed47f 100644 --- a/src/conf/network_conf.h +++ b/src/conf/network_conf.h @@ -31,7 +31,7 @@ # include # include "internal.h" -# include "threads.h" +# include "virthread.h" # include "virsocketaddr.h" # include "virnetdevbandwidth.h" # include "virnetdevvportprofile.h" diff --git a/src/conf/node_device_conf.h b/src/conf/node_device_conf.h index e394042a66..9860f67491 100644 --- a/src/conf/node_device_conf.h +++ b/src/conf/node_device_conf.h @@ -27,7 +27,7 @@ # include "internal.h" # include "util.h" -# include "threads.h" +# include "virthread.h" # include diff --git a/src/conf/storage_conf.h b/src/conf/storage_conf.h index 743b768d5f..573c3db7cf 100644 --- a/src/conf/storage_conf.h +++ b/src/conf/storage_conf.h @@ -27,7 +27,7 @@ # include "internal.h" # include "util.h" # include "storage_encryption_conf.h" -# include "threads.h" +# include "virthread.h" # include diff --git a/src/conf/virconsole.c b/src/conf/virconsole.c index 757573d799..515c5fa2f2 100644 --- a/src/conf/virconsole.c +++ b/src/conf/virconsole.c @@ -31,7 +31,7 @@ #include "virhash.h" #include "fdstream.h" #include "internal.h" -#include "threads.h" +#include "virthread.h" #include "viralloc.h" #include "virpidfile.h" #include "virlog.h" diff --git a/src/datatypes.h b/src/datatypes.h index 55f97ed7a1..a1dfc1ebcf 100644 --- a/src/datatypes.h +++ b/src/datatypes.h @@ -25,7 +25,7 @@ # include "internal.h" # include "driver.h" -# include "threads.h" +# include "virthread.h" # include "virobject.h" extern virClassPtr virConnectClass; diff --git a/src/libvirt.c b/src/libvirt.c index ed7dcaef1f..5654d530e2 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -59,7 +59,7 @@ #include "vircommand.h" #include "virrandom.h" #include "viruri.h" -#include "threads.h" +#include "virthread.h" #ifdef WITH_TEST # include "test/test_driver.h" diff --git a/src/locking/lock_daemon.h b/src/locking/lock_daemon.h index 619f8f2d28..da62edc2f7 100644 --- a/src/locking/lock_daemon.h +++ b/src/locking/lock_daemon.h @@ -24,7 +24,7 @@ # define __VIR_LOCK_DAEMON_H__ # include "virlockspace.h" -# include "threads.h" +# include "virthread.h" typedef struct _virLockDaemon virLockDaemon; typedef virLockDaemon *virLockDaemonPtr; diff --git a/src/lxc/lxc_conf.h b/src/lxc/lxc_conf.h index 70d47a4cae..d45e0a068d 100644 --- a/src/lxc/lxc_conf.h +++ b/src/lxc/lxc_conf.h @@ -31,7 +31,7 @@ # include "domain_conf.h" # include "domain_event.h" # include "capabilities.h" -# include "threads.h" +# include "virthread.h" # include "vircgroup.h" # include "security/security_manager.h" # include "configmake.h" diff --git a/src/lxc/lxc_monitor.c b/src/lxc/lxc_monitor.c index 90637ebd1f..b0da21fd5a 100644 --- a/src/lxc/lxc_monitor.c +++ b/src/lxc/lxc_monitor.c @@ -29,7 +29,7 @@ #include "virterror_internal.h" #include "virlog.h" -#include "threads.h" +#include "virthread.h" #include "rpc/virnetclient.h" #define VIR_FROM_THIS VIR_FROM_LXC diff --git a/src/nwfilter/nwfilter_learnipaddr.c b/src/nwfilter/nwfilter_learnipaddr.c index 8c4bbcfb79..442cc83c66 100644 --- a/src/nwfilter/nwfilter_learnipaddr.c +++ b/src/nwfilter/nwfilter_learnipaddr.c @@ -47,7 +47,7 @@ #include "datatypes.h" #include "virnetdev.h" #include "virterror_internal.h" -#include "threads.h" +#include "virthread.h" #include "conf/nwfilter_params.h" #include "conf/domain_conf.h" #include "nwfilter_gentech_driver.h" diff --git a/src/openvz/openvz_conf.h b/src/openvz/openvz_conf.h index 3eb2b3e4a2..c1007f082b 100644 --- a/src/openvz/openvz_conf.h +++ b/src/openvz/openvz_conf.h @@ -31,7 +31,7 @@ # include "internal.h" # include "domain_conf.h" -# include "threads.h" +# include "virthread.h" /* OpenVZ commands - Replace with wrapper scripts later? */ diff --git a/src/parallels/parallels_utils.h b/src/parallels/parallels_utils.h index 7c317077cf..cf006e847c 100644 --- a/src/parallels/parallels_utils.h +++ b/src/parallels/parallels_utils.h @@ -24,11 +24,11 @@ # define PARALLELS_UTILS_H # include "driver.h" -# include "util/threads.h" # include "conf/domain_conf.h" # include "conf/storage_conf.h" # include "conf/domain_event.h" # include "conf/network_conf.h" +# include "virthread.h" # include "virjson.h" # define parallelsParseError() \ diff --git a/src/qemu/qemu_conf.h b/src/qemu/qemu_conf.h index 0d4816e917..1aa56ccb6a 100644 --- a/src/qemu/qemu_conf.h +++ b/src/qemu/qemu_conf.h @@ -32,7 +32,7 @@ # include "network_conf.h" # include "domain_conf.h" # include "domain_event.h" -# include "threads.h" +# include "virthread.h" # include "security/security_manager.h" # include "vircgroup.h" # include "virpci.h" diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h index 11670b9fa1..00648cf50e 100644 --- a/src/qemu/qemu_domain.h +++ b/src/qemu/qemu_domain.h @@ -24,7 +24,7 @@ #ifndef __QEMU_DOMAIN_H__ # define __QEMU_DOMAIN_H__ -# include "threads.h" +# include "virthread.h" # include "domain_conf.h" # include "snapshot_conf.h" # include "qemu_monitor.h" diff --git a/src/rpc/virkeepalive.c b/src/rpc/virkeepalive.c index 91af3157fd..5c14e14115 100644 --- a/src/rpc/virkeepalive.c +++ b/src/rpc/virkeepalive.c @@ -23,7 +23,7 @@ #include #include "viralloc.h" -#include "threads.h" +#include "virthread.h" #include "virfile.h" #include "virlog.h" #include "util.h" diff --git a/src/rpc/virnetclient.c b/src/rpc/virnetclient.c index b4fe4d94e5..85787f028f 100644 --- a/src/rpc/virnetclient.c +++ b/src/rpc/virnetclient.c @@ -31,7 +31,7 @@ #include "virnetsocket.h" #include "virkeepalive.h" #include "viralloc.h" -#include "threads.h" +#include "virthread.h" #include "virfile.h" #include "virlog.h" #include "util.h" diff --git a/src/rpc/virnetclientprogram.c b/src/rpc/virnetclientprogram.c index 739697103b..00948e09fa 100644 --- a/src/rpc/virnetclientprogram.c +++ b/src/rpc/virnetclientprogram.c @@ -33,7 +33,7 @@ #include "virlog.h" #include "util.h" #include "virfile.h" -#include "threads.h" +#include "virthread.h" #define VIR_FROM_THIS VIR_FROM_RPC diff --git a/src/rpc/virnetclientstream.c b/src/rpc/virnetclientstream.c index 4877b0caf6..7e1f9c716b 100644 --- a/src/rpc/virnetclientstream.c +++ b/src/rpc/virnetclientstream.c @@ -27,7 +27,7 @@ #include "viralloc.h" #include "virterror_internal.h" #include "virlog.h" -#include "threads.h" +#include "virthread.h" #define VIR_FROM_THIS VIR_FROM_RPC diff --git a/src/rpc/virnetsaslcontext.c b/src/rpc/virnetsaslcontext.c index adc4f1e608..cd30f4df20 100644 --- a/src/rpc/virnetsaslcontext.c +++ b/src/rpc/virnetsaslcontext.c @@ -27,7 +27,7 @@ #include "virterror_internal.h" #include "viralloc.h" -#include "threads.h" +#include "virthread.h" #include "virlog.h" #define VIR_FROM_THIS VIR_FROM_RPC diff --git a/src/rpc/virnetserver.c b/src/rpc/virnetserver.c index 26ceb0c8dd..b48af5e90f 100644 --- a/src/rpc/virnetserver.c +++ b/src/rpc/virnetserver.c @@ -31,7 +31,7 @@ #include "virlog.h" #include "viralloc.h" #include "virterror_internal.h" -#include "threads.h" +#include "virthread.h" #include "virthreadpool.h" #include "util.h" #include "virfile.h" diff --git a/src/rpc/virnetserverclient.c b/src/rpc/virnetserverclient.c index 7f028b87e7..f1eb69b383 100644 --- a/src/rpc/virnetserverclient.c +++ b/src/rpc/virnetserverclient.c @@ -32,7 +32,7 @@ #include "virlog.h" #include "virterror_internal.h" #include "viralloc.h" -#include "threads.h" +#include "virthread.h" #include "virkeepalive.h" #define VIR_FROM_THIS VIR_FROM_RPC diff --git a/src/rpc/virnetserverprogram.c b/src/rpc/virnetserverprogram.c index 287282e321..a8f875c3e2 100644 --- a/src/rpc/virnetserverprogram.c +++ b/src/rpc/virnetserverprogram.c @@ -30,7 +30,7 @@ #include "virterror_internal.h" #include "virlog.h" #include "virfile.h" -#include "threads.h" +#include "virthread.h" #define VIR_FROM_THIS VIR_FROM_RPC diff --git a/src/rpc/virnetserverservice.c b/src/rpc/virnetserverservice.c index 92b5cef9bb..9992983cac 100644 --- a/src/rpc/virnetserverservice.c +++ b/src/rpc/virnetserverservice.c @@ -27,7 +27,7 @@ #include "viralloc.h" #include "virterror_internal.h" -#include "threads.h" +#include "virthread.h" #define VIR_FROM_THIS VIR_FROM_RPC diff --git a/src/rpc/virnetsocket.c b/src/rpc/virnetsocket.c index 8c62a2a4ad..442850ad7f 100644 --- a/src/rpc/virnetsocket.c +++ b/src/rpc/virnetsocket.c @@ -46,7 +46,7 @@ #include "virterror_internal.h" #include "virlog.h" #include "virfile.h" -#include "threads.h" +#include "virthread.h" #include "virprocess.h" #include "passfd.h" diff --git a/src/rpc/virnetsshsession.c b/src/rpc/virnetsshsession.c index 8a7d5f9a3d..663b7cd121 100644 --- a/src/rpc/virnetsshsession.c +++ b/src/rpc/virnetsshsession.c @@ -30,7 +30,7 @@ #include "viralloc.h" #include "virlog.h" #include "configmake.h" -#include "threads.h" +#include "virthread.h" #include "util.h" #include "virterror_internal.h" #include "virobject.h" diff --git a/src/rpc/virnettlscontext.c b/src/rpc/virnettlscontext.c index d9354e0b76..1ff40cf47b 100644 --- a/src/rpc/virnettlscontext.c +++ b/src/rpc/virnettlscontext.c @@ -34,7 +34,7 @@ #include "virterror_internal.h" #include "util.h" #include "virlog.h" -#include "threads.h" +#include "virthread.h" #include "configmake.h" #define DH_BITS 1024 diff --git a/src/secret/secret_driver.c b/src/secret/secret_driver.c index fb2024b1d2..672ff54997 100644 --- a/src/secret/secret_driver.c +++ b/src/secret/secret_driver.c @@ -36,7 +36,7 @@ #include "viralloc.h" #include "secret_conf.h" #include "secret_driver.h" -#include "threads.h" +#include "virthread.h" #include "util.h" #include "uuid.h" #include "virterror_internal.h" diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 0856cdbaa6..c91e3cd49d 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -47,7 +47,7 @@ #include "storage_conf.h" #include "node_device_conf.h" #include "xml.h" -#include "threads.h" +#include "virthread.h" #include "virlog.h" #include "virfile.h" #include "virtypedparam.h" diff --git a/src/uml/uml_conf.h b/src/uml/uml_conf.h index 09a0305810..dfa168ed4c 100644 --- a/src/uml/uml_conf.h +++ b/src/uml/uml_conf.h @@ -30,7 +30,7 @@ # include "domain_conf.h" # include "domain_event.h" # include "virterror_internal.h" -# include "threads.h" +# include "virthread.h" # include "vircommand.h" # include "virhash.h" diff --git a/src/util/iohelper.c b/src/util/iohelper.c index 1b16d5c960..dcb5c141ae 100644 --- a/src/util/iohelper.c +++ b/src/util/iohelper.c @@ -34,7 +34,7 @@ #include #include "util.h" -#include "threads.h" +#include "virthread.h" #include "virfile.h" #include "viralloc.h" #include "virterror_internal.h" diff --git a/src/util/util.c b/src/util/util.c index 5d32995e1f..c7d4aa5198 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -81,7 +81,7 @@ #include "util.h" #include "virstoragefile.h" #include "viralloc.h" -#include "threads.h" +#include "virthread.h" #include "verify.h" #include "virfile.h" #include "vircommand.h" diff --git a/src/util/virdbus.c b/src/util/virdbus.c index 34c46b2c97..f45074ca25 100644 --- a/src/util/virdbus.c +++ b/src/util/virdbus.c @@ -25,7 +25,7 @@ #include "viralloc.h" #include "virterror_internal.h" #include "virlog.h" -#include "threads.h" +#include "virthread.h" #define VIR_FROM_THIS VIR_FROM_DBUS diff --git a/src/util/virebtables.c b/src/util/virebtables.c index 99afa50b58..68eb79626b 100644 --- a/src/util/virebtables.c +++ b/src/util/virebtables.c @@ -47,7 +47,7 @@ #include "viralloc.h" #include "virterror_internal.h" #include "virlog.h" -#include "threads.h" +#include "virthread.h" #if HAVE_FIREWALLD static char *firewall_cmd_path = NULL; diff --git a/src/util/vireventpoll.c b/src/util/vireventpoll.c index 535b2d44f6..b039751956 100644 --- a/src/util/vireventpoll.c +++ b/src/util/vireventpoll.c @@ -31,7 +31,7 @@ #include #include -#include "threads.h" +#include "virthread.h" #include "virlog.h" #include "vireventpoll.h" #include "viralloc.h" diff --git a/src/util/viriptables.c b/src/util/viriptables.c index 7929073d74..b873acfe59 100644 --- a/src/util/viriptables.c +++ b/src/util/viriptables.c @@ -45,7 +45,7 @@ #include "viralloc.h" #include "virterror_internal.h" #include "virlog.h" -#include "threads.h" +#include "virthread.h" #if HAVE_FIREWALLD static char *firewall_cmd_path = NULL; diff --git a/src/util/virlockspace.c b/src/util/virlockspace.c index 509b162478..961e1717da 100644 --- a/src/util/virlockspace.c +++ b/src/util/virlockspace.c @@ -28,7 +28,7 @@ #include "util.h" #include "virfile.h" #include "virhash.h" -#include "threads.h" +#include "virthread.h" #include #include diff --git a/src/util/virlog.c b/src/util/virlog.c index 73a3f55afb..fd010f477b 100644 --- a/src/util/virlog.c +++ b/src/util/virlog.c @@ -45,7 +45,7 @@ #include "viralloc.h" #include "util.h" #include "virbuffer.h" -#include "threads.h" +#include "virthread.h" #include "virfile.h" #include "virtime.h" #include "intprops.h" diff --git a/src/util/virnetlink.c b/src/util/virnetlink.c index b132d9a591..fdd4c0d33a 100644 --- a/src/util/virnetlink.c +++ b/src/util/virnetlink.c @@ -38,7 +38,7 @@ #include "virnetlink.h" #include "virlog.h" #include "viralloc.h" -#include "threads.h" +#include "virthread.h" #include "virmacaddr.h" #include "virterror_internal.h" diff --git a/src/util/virnodesuspend.c b/src/util/virnodesuspend.c index 1528cf185f..878be1d986 100644 --- a/src/util/virnodesuspend.c +++ b/src/util/virnodesuspend.c @@ -23,7 +23,7 @@ #include "virnodesuspend.h" #include "vircommand.h" -#include "threads.h" +#include "virthread.h" #include "datatypes.h" #include "viralloc.h" diff --git a/src/util/virobject.c b/src/util/virobject.c index 5cdd2e8723..aca6182329 100644 --- a/src/util/virobject.c +++ b/src/util/virobject.c @@ -22,7 +22,7 @@ #include #include "virobject.h" -#include "threads.h" +#include "virthread.h" #include "viralloc.h" #include "viratomic.h" #include "virterror_internal.h" diff --git a/src/util/virrandom.c b/src/util/virrandom.c index c24bf3b0e6..1dd96cf2bd 100644 --- a/src/util/virrandom.c +++ b/src/util/virrandom.c @@ -27,7 +27,7 @@ #include #include "virrandom.h" -#include "threads.h" +#include "virthread.h" #include "count-one-bits.h" #include "util.h" #include "virterror_internal.h" diff --git a/src/util/virterror.c b/src/util/virterror.c index ce2d837acc..6c773d3ec3 100644 --- a/src/util/virterror.c +++ b/src/util/virterror.c @@ -31,7 +31,7 @@ #include "datatypes.h" #include "virlog.h" #include "viralloc.h" -#include "threads.h" +#include "virthread.h" #include "util.h" virThreadLocal virLastErr; diff --git a/src/util/threads.c b/src/util/virthread.c similarity index 87% rename from src/util/threads.c rename to src/util/virthread.c index d0d5b83505..dd1768e19a 100644 --- a/src/util/threads.c +++ b/src/util/virthread.c @@ -1,5 +1,5 @@ /* - * threads.c: basic thread synchronization primitives + * virthread.c: basic thread synchronization primitives * * Copyright (C) 2009-2010 Red Hat, Inc. * @@ -21,14 +21,14 @@ #include -#include "threads.h" +#include "virthread.h" /* On mingw, we prefer native threading over the sometimes-broken * pthreads-win32 library wrapper. */ #ifdef WIN32 -# include "threads-win32.c" +# include "virthreadwin32.c" #elif defined HAVE_PTHREAD_MUTEXATTR_INIT -# include "threads-pthread.c" +# include "virthreadpthread.c" #else # error "Either pthreads or Win32 threads are required" #endif diff --git a/src/util/threads.h b/src/util/virthread.h similarity index 98% rename from src/util/threads.h rename to src/util/virthread.h index 97617642ef..b11a2515b2 100644 --- a/src/util/threads.h +++ b/src/util/virthread.h @@ -1,5 +1,5 @@ /* - * threads.h: basic thread synchronization primitives + * virthread.h: basic thread synchronization primitives * * Copyright (C) 2009-2011 Red Hat, Inc. * @@ -107,9 +107,9 @@ void *virThreadLocalGet(virThreadLocalPtr l); int virThreadLocalSet(virThreadLocalPtr l, void*) ATTRIBUTE_RETURN_CHECK; # ifdef WIN32 -# include "threads-win32.h" +# include "virthreadwin32.h" # elif defined HAVE_PTHREAD_MUTEXATTR_INIT -# include "threads-pthread.h" +# include "virthreadpthread.h" # else # error "Either pthreads or Win32 threads are required" # endif diff --git a/src/util/virthreadpool.c b/src/util/virthreadpool.c index 5ab339ad96..37730530e7 100644 --- a/src/util/virthreadpool.c +++ b/src/util/virthreadpool.c @@ -27,7 +27,7 @@ #include "virthreadpool.h" #include "viralloc.h" -#include "threads.h" +#include "virthread.h" #include "virterror_internal.h" #define VIR_FROM_THIS VIR_FROM_NONE diff --git a/src/util/threads-pthread.c b/src/util/virthreadpthread.c similarity index 98% rename from src/util/threads-pthread.c rename to src/util/virthreadpthread.c index 37d8902eaa..9f02ba1b04 100644 --- a/src/util/threads-pthread.c +++ b/src/util/virthreadpthread.c @@ -1,5 +1,5 @@ /* - * threads-pthread.c: basic thread synchronization primitives + * virthreadpthread.c: basic thread synchronization primitives * * Copyright (C) 2009-2011 Red Hat, Inc. * diff --git a/src/util/threads-pthread.h b/src/util/virthreadpthread.h similarity index 94% rename from src/util/threads-pthread.h rename to src/util/virthreadpthread.h index ddaedb74d4..b9f1319fc1 100644 --- a/src/util/threads-pthread.h +++ b/src/util/virthreadpthread.h @@ -1,5 +1,5 @@ /* - * threads.c: basic thread synchronization primitives + * virthreadpthread.c: basic thread synchronization primitives * * Copyright (C) 2009, 2011 Red Hat, Inc. * diff --git a/src/util/threads-win32.c b/src/util/virthreadwin32.c similarity index 99% rename from src/util/threads-win32.c rename to src/util/virthreadwin32.c index c9f16c1eb7..0ad7e5c570 100644 --- a/src/util/threads-win32.c +++ b/src/util/virthreadwin32.c @@ -1,5 +1,5 @@ /* - * threads-win32.c: basic thread synchronization primitives + * virthreadwin32.c: basic thread synchronization primitives * * Copyright (C) 2009-2011 Red Hat, Inc. * diff --git a/src/util/threads-win32.h b/src/util/virthreadwin32.h similarity index 95% rename from src/util/threads-win32.h rename to src/util/virthreadwin32.h index 07a1bf5442..fc12847a89 100644 --- a/src/util/threads-win32.h +++ b/src/util/virthreadwin32.h @@ -1,5 +1,5 @@ /* - * threads-win32.h basic thread synchronization primitives + * virthreadwin32.h basic thread synchronization primitives * * Copyright (C) 2009, 2011-2012 Red Hat, Inc. * diff --git a/src/vmware/vmware_conf.h b/src/vmware/vmware_conf.h index b7a35a37d4..22d5240b94 100644 --- a/src/vmware/vmware_conf.h +++ b/src/vmware/vmware_conf.h @@ -25,7 +25,7 @@ # include "internal.h" # include "domain_conf.h" -# include "threads.h" +# include "virthread.h" # define VIR_FROM_THIS VIR_FROM_VMWARE # define PROGRAM_SENTINAL ((char *)0x1) diff --git a/src/xen/xen_hypervisor.c b/src/xen/xen_hypervisor.c index a692deb175..22714a3879 100644 --- a/src/xen/xen_hypervisor.c +++ b/src/xen/xen_hypervisor.c @@ -76,7 +76,7 @@ #include "virbuffer.h" #include "capabilities.h" #include "viralloc.h" -#include "threads.h" +#include "virthread.h" #include "virfile.h" #include "virnodesuspend.h" #include "virtypedparam.h" diff --git a/tests/eventtest.c b/tests/eventtest.c index cd36a2d885..6d00ea8c3f 100644 --- a/tests/eventtest.c +++ b/tests/eventtest.c @@ -28,7 +28,7 @@ #include "testutils.h" #include "internal.h" -#include "threads.h" +#include "virthread.h" #include "virlog.h" #include "util.h" #include "vireventpoll.h" diff --git a/tests/nwfilterxml2xmltest.c b/tests/nwfilterxml2xmltest.c index 224ca93b85..8c29a46b69 100644 --- a/tests/nwfilterxml2xmltest.c +++ b/tests/nwfilterxml2xmltest.c @@ -11,7 +11,7 @@ #include "internal.h" #include "testutils.h" #include "xml.h" -#include "threads.h" +#include "virthread.h" #include "nwfilter_params.h" #include "nwfilter_conf.h" #include "testutilsqemu.h" diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c index 264c140c67..e1b6c56373 100644 --- a/tests/qemumonitorjsontest.c +++ b/tests/qemumonitorjsontest.c @@ -22,7 +22,7 @@ #include "testutils.h" #include "testutilsqemu.h" #include "qemumonitortestutils.h" -#include "threads.h" +#include "virthread.h" #include "virterror_internal.h" diff --git a/tests/qemumonitortestutils.c b/tests/qemumonitortestutils.c index 1e3f0da5fc..cc388035bf 100644 --- a/tests/qemumonitortestutils.c +++ b/tests/qemumonitortestutils.c @@ -26,7 +26,7 @@ #include "qemumonitortestutils.h" -#include "threads.h" +#include "virthread.h" #include "qemu/qemu_monitor.h" #include "rpc/virnetsocket.h" #include "viralloc.h" diff --git a/tests/testutils.c b/tests/testutils.c index 7bb88f0deb..c6b1d233a6 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -41,7 +41,7 @@ #include "internal.h" #include "viralloc.h" #include "util.h" -#include "threads.h" +#include "virthread.h" #include "virterror_internal.h" #include "virbuffer.h" #include "virlog.h" diff --git a/tests/viratomictest.c b/tests/viratomictest.c index 88f387b292..1ed1707c5d 100644 --- a/tests/viratomictest.c +++ b/tests/viratomictest.c @@ -26,7 +26,7 @@ #include "viratomic.h" #include "virrandom.h" -#include "threads.h" +#include "virthread.h" static int testTypes(const void *data ATTRIBUTE_UNUSED) diff --git a/tools/console.c b/tools/console.c index 1d21189ad3..d0313086d9 100644 --- a/tools/console.c +++ b/tools/console.c @@ -42,7 +42,7 @@ # include "util.h" # include "virfile.h" # include "viralloc.h" -# include "threads.h" +# include "virthread.h" # include "virterror_internal.h" /* diff --git a/tools/virsh.c b/tools/virsh.c index e894aff439..91a9677887 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -64,7 +64,7 @@ #include "libvirt/libvirt-qemu.h" #include "virfile.h" #include "configmake.h" -#include "threads.h" +#include "virthread.h" #include "vircommand.h" #include "virkeycode.h" #include "virnetdevbandwidth.h" diff --git a/tools/virsh.h b/tools/virsh.h index 6913ed1298..6e6d3eef84 100644 --- a/tools/virsh.h +++ b/tools/virsh.h @@ -35,7 +35,7 @@ # include "internal.h" # include "virterror_internal.h" -# include "threads.h" +# include "virthread.h" # include "virnetdevbandwidth.h" # define VSH_MAX_XML_FILE (10*1024*1024)