Re: [Qemu-devel] [PATCH v3 1/3] qemu-thread: introduce qemu-thread-common.[ch]

2018-04-22 Thread Peter Xu
On Fri, Apr 20, 2018 at 01:07:34PM -0400, Emilio G. Cota wrote: > On Fri, Apr 20, 2018 at 12:42:10 +0800, Peter Xu wrote: > > Put all the shared qemu-thread implementations into these files. The > > header should be internal to qemu-thread but not for qemu-thread users. > > > > Introduce some hoo

Re: [Qemu-devel] [PATCH v3 1/3] qemu-thread: introduce qemu-thread-common.[ch]

2018-04-20 Thread Emilio G. Cota
On Fri, Apr 20, 2018 at 12:42:10 +0800, Peter Xu wrote: > Put all the shared qemu-thread implementations into these files. The > header should be internal to qemu-thread but not for qemu-thread users. > > Introduce some hooks correspondingly for the shared part. Note that in > qemu_mutex_unlock_

[Qemu-devel] [PATCH v3 1/3] qemu-thread: introduce qemu-thread-common.[ch]

2018-04-19 Thread Peter Xu
Put all the shared qemu-thread implementations into these files. The header should be internal to qemu-thread but not for qemu-thread users. Introduce some hooks correspondingly for the shared part. Note that in qemu_mutex_unlock_impl() we moved the call before unlock operation which should make