]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-thread: Assert locks are initialized before using
authorFam Zheng <famz@redhat.com>
Tue, 4 Jul 2017 12:23:25 +0000 (20:23 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Jul 2017 12:39:28 +0000 (14:39 +0200)
commitc096358e747e88fc7364e40e3c354ee0bb683960
tree241c11c021450913505a090cf2cf5629c1488a41
parent025bdeab3c163aee9604a60b2332a5fcbcc00f8d
qemu-thread: Assert locks are initialized before using

Not all platforms check whether a lock is initialized before used.  In
particular Linux seems to be more permissive than OSX.

Check initialization state explicitly in our code to catch such bugs
earlier.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170704122325.25634-1-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/thread-posix.h
include/qemu/thread-win32.h
util/qemu-thread-posix.c
util/qemu-thread-win32.c