Re: [Qemu-devel] [PATCH v3 3/4] qemu-thread: add QemuEvent

2013-08-27 Thread Alex Bligh
On 27 Aug 2013, at 04:21, Liu Ping Fan wrote: > +void qemu_event_set(QemuEvent *ev) > +{ It would be useful if these functions had inline documentation. -- Alex Bligh

[Qemu-devel] [PATCH v3 3/4] qemu-thread: add QemuEvent

2013-08-26 Thread Liu Ping Fan
From: Paolo Bonzini This emulates Win32 manual-reset events using futexes or conditional variables. Typical ways to use them are with multi-producer, single-consumer data structures, to test for a complex condition whose elements come from different threads: for (;;) { qemu_event_re