[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 1/4] monitor: rename out_lock to mon_lock
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v4 1/4] monitor: rename out_lock to mon_lock |
Date: |
Tue, 8 May 2018 11:26:21 +0100 |
User-agent: |
Mutt/1.9.2 (2017-12-15) |
On Wed, May 02, 2018 at 06:04:19PM +0800, Peter Xu wrote:
> The out_lock was only protecting a few Monitor fields. In the future
> the monitor code will start to run in multiple threads. We turn it into
> a bigger lock to protect not only the out buffer but also all the rest.
> For now we share the lock. We can split the lock when needed.
>
> Since at it, arrange the Monitor struct a bit.
>
> Signed-off-by: Peter Xu <address@hidden>
> ---
> monitor.c | 53 +++++++++++++++++++++++++++++------------------------
> 1 file changed, 29 insertions(+), 24 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature