]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Use a static initializer for static mutexes
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 25 Mar 2014 14:54:44 +0000 (14:54 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 8 Apr 2014 12:46:29 +0000 (13:46 +0100)
commit3f671e6c52e403ce68e133ae393f95d8b0955143
tree9910ce773e7a61cfa692dbfa1643e2b056c84280
parent25d5d7057deab13647426b3fd835ccb8f854f48b
Use a static initializer for static mutexes

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@redhat.com>
src/conf/nwfilter_ipaddrmap.c
src/lxc/lxc_controller.c
src/nwfilter/nwfilter_ebiptables_driver.c
src/nwfilter/nwfilter_learnipaddr.c
src/test/test_driver.c
src/util/virnetdevmacvlan.c
src/util/virnetdevveth.c
src/util/virnodesuspend.c
src/util/virrandom.c
src/util/virthread.h