]> git.proxmox.com Git - qemu.git/commit
ccid: make threads joinable
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Dec 2011 16:21:34 +0000 (17:21 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 12 Dec 2011 23:06:22 +0000 (17:06 -0600)
commitda5361cc685c004d8bb4e7c5e7b3a52c7aca2c56
tree7fd18ead7e445c983db56417aecddc94b2ef8c2c
parent403e633126b7a781ecd48a29e3355770d46bbf1a
ccid: make threads joinable

Destroying a mutex that another thread might have just unlocked
is racy.  It usually works, but you cannot do that in general and
can lead to deadlocks or segfaults.  Change ccid to use joinable
threads instead.

(Also, qemu_mutex_init/qemu_cond_init were missing).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/ccid-card-emulated.c