Re: [RFC 1/3] kvm tools: use mutex abstraction instead of pthread mutex

2012-10-24 Thread Pekka Enberg
On Wed, 24 Oct 2012, Sasha Levin wrote: > 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 I applied this patch from the RFC series, thanks Sa

[RFC 1/3] kvm tools: use mutex abstraction instead of pthread mutex

2012-10-24 Thread Sasha Levin
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 --- tools/kvm/hw/serial.c | 10 +- tools/kvm/include/kvm/mutex.h | 22 ++