[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 2/4] qemu-thread: introduce qemu-thread-commo
From: |
Emilio G. Cota |
Subject: |
Re: [Qemu-devel] [PATCH v5 2/4] qemu-thread: introduce qemu-thread-common.h |
Date: |
Tue, 24 Apr 2018 11:46:52 -0400 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Tue, Apr 24, 2018 at 12:51:10 +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_mutex_post_unlock() hook.
>
> Currently the hooks only calls the tracepoints.
This line is obsolete -- in _init we set ->initialized.
> Put all these shared hooks into the header files. It should be internal
> to qemu-thread but not for qemu-thread users, hence put into util/
> directory.
>
> Signed-off-by: Peter Xu <address@hidden>
> ---
(snip)
> +++ b/util/qemu-thread-common.h
(snip)
> +#ifndef __QEMU_THREAD_COMMON_H__
> +#define __QEMU_THREAD_COMMON_H__
Please change to QEMU_THREAD_COMMON_H, without the double underscore.
(_* and __* identifiers are reserved for the C library)
Otherwise:
Reviewed-by: Emilio G. Cota <address@hidden>
Thanks,
Emilio