Re: [Qemu-devel] [PATCH v4 2/4] qemu-thread: introduce qemu-thread-common.h

2018-04-23 Thread Emilio G. Cota
On Mon, Apr 23, 2018 at 13:39:25 +0800, Peter Xu wrote: > Introduce some hooks for the shared part of qemu thread between POSIX > and Windows implementations. Note that in qemu_mutex_unlock_impl() we > moved the call before unlock operation which should make more sense. > And we don't need qemu_mu

[Qemu-devel] [PATCH v4 2/4] qemu-thread: introduce qemu-thread-common.h

2018-04-22 Thread Peter Xu
Introduce some hooks for the shared part of qemu thread between POSIX and Windows implementations. Note that in qemu_mutex_unlock_impl() we moved the call before unlock operation which should make more sense. And we don't need qemu_mutex_post_unlock() hook. Currently the hooks only calls the trac