Re: [Qemu-devel] [PATCH 4/4] ccid: make threads joinable

2011-12-07 Thread Alon Levy
On Tue, Dec 06, 2011 at 06:05:55PM +0100, Paolo Bonzini wrote: > 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. > Looks good t

[Qemu-devel] [PATCH 4/4] ccid: make threads joinable

2011-12-06 Thread Paolo Bonzini
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 --