]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: use mutex abstraction instead of pthread mutex
authorSasha Levin <sasha.levin@oracle.com>
Wed, 24 Oct 2012 17:00:08 +0000 (13:00 -0400)
committerPekka Enberg <penberg@kernel.org>
Thu, 25 Oct 2012 06:49:39 +0000 (09:49 +0300)
commit6d8a0462aba16ff58ab7ef56f6ca1b09704694a2
treeae846916a173caff051ce57bc837558fe078ef6a
parentc5519894fba5602d92b26f6754e72ed6b401ea2d
kvm tools: use mutex abstraction instead of pthread mutex

We already have something to wrap pthread with mutex_[init,lock,unlock]
calls. This patch creates a new struct mutex abstraction and moves
everything to work with it.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
13 files changed:
tools/kvm/hw/serial.c
tools/kvm/include/kvm/mutex.h
tools/kvm/include/kvm/qcow.h
tools/kvm/include/kvm/threadpool.h
tools/kvm/include/kvm/uip.h
tools/kvm/net/uip/buf.c
tools/kvm/net/uip/core.c
tools/kvm/net/uip/tcp.c
tools/kvm/net/uip/udp.c
tools/kvm/util/threadpool.c
tools/kvm/virtio/blk.c
tools/kvm/virtio/console.c
tools/kvm/virtio/net.c