]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-thread: introduce QemuRecMutex
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Oct 2016 10:49:07 +0000 (12:49 +0200)
committerFam Zheng <famz@redhat.com>
Fri, 28 Oct 2016 13:50:18 +0000 (21:50 +0800)
commitfeadec63846d569829a4302486025b2915228712
treedf3e519c45f8c94bb7e546b87c2af67771330d7c
parent65c1b5b622d09044af3f872240d65e7343f6f83e
qemu-thread: introduce QemuRecMutex

GRecMutex is new in glib 2.32, so we cannot use it.  Introduce
a recursive mutex in qemu-thread instead, which will be used
instead of RFifoLock.

Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1477565348-5458-20-git-send-email-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
include/qemu/thread-posix.h
include/qemu/thread-win32.h
include/qemu/thread.h
util/qemu-thread-posix.c
util/qemu-thread-win32.c