[libvirt] [PATCH] Use a static initializer for static mutexes
Michal Privoznik
mprivozn at redhat.com
Tue Apr 8 11:37:57 UTC 2014
On 08.04.2014 12:09, Daniel P. Berrange wrote:
> Now that we ditched our custom pthread impl for Win32, we can
> use PTHREAD_MUTEX_INITIALIZER for static mutexes. This avoids
> the need to use a virOnce one-time global initializer in a
> number of places.
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> src/conf/nwfilter_ipaddrmap.c | 7 +------
> src/lxc/lxc_controller.c | 8 +-------
> src/nwfilter/nwfilter_ebiptables_driver.c | 5 +----
> src/nwfilter/nwfilter_learnipaddr.c | 14 ++------------
> src/test/test_driver.c | 17 +----------------
> src/util/virnetdevmacvlan.c | 15 +--------------
> src/util/virnetdevveth.c | 16 +---------------
> src/util/virnodesuspend.c | 22 +---------------------
> src/util/virrandom.c | 5 +----
> src/util/virthread.h | 5 +++++
> 10 files changed, 15 insertions(+), 99 deletions(-)
ACK
Michal
More information about the libvir-list
mailing list