Re: [Qemu-devel] [PATCH] semaphore: fix a hangup problem under loadon NetBSD hosts.

2013-07-02 Thread Laszlo Ersek
On 07/02/13 17:27, Izumi Tsutsui wrote: > Laszlo Ersek wrote: >> Conversely, the only time we need to send a signal is the 0->1 count >> transition (*). > > Per comments from Soda, signals could be required even on count >0, > if more than one threads are sleeping in qemu_cond_timedwait(), > and

Re: [Qemu-devel] [PATCH] semaphore: fix a hangup problem under loadon NetBSD hosts.

2013-07-02 Thread Izumi Tsutsui
Laszlo Ersek wrote: > On 06/29/13 12:22, Izumi Tsutsui wrote: > > Fix following bugs in "fallback implementation of counting semaphores > > with mutex+condvar" added in c166cb72f1676855816340666c3b618beef4b976: > > - waiting threads are not restarted properly if more than one threads > >are w