commit | da5361cc685c004d8bb4e7c5e7b3a52c7aca2c56 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Mon Dec 12 17:21:34 2011 +0100 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Mon Dec 12 17:06:22 2011 -0600 |
tree | 7fd18ead7e445c983db56417aecddc94b2ef8c2c | |
parent | 403e633126b7a781ecd48a29e3355770d46bbf1a [diff] |
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>