Nevermind, I see the next patch adds QMP support.
Stefan
signature.asc
Description: PGP signature
On Wed, Jan 24, 2018 at 01:39:46PM +0800, Peter Xu wrote:
> Monitor code now can be run in more than one thread. Let it be thread
> safe when accessing suspend_cnt counter.
>
> Reviewed-by: Eric Blake
> Signed-off-by: Peter Xu
> ---
> monitor.c | 15 ---
> 1 file changed, 8 inserti
On Wed, Jan 24, 2018 at 01:39:46PM +0800, Peter Xu wrote:
> @@ -3996,7 +3996,7 @@ int monitor_suspend(Monitor *mon)
> {
> if (!mon->rs)
> return -ENOTTY;
Does this mean that QMP monitors like -qmp unix:/tmp/foo,server,nowait
will not use suspend_cnt?
I thought the point was to use
Monitor code now can be run in more than one thread. Let it be thread
safe when accessing suspend_cnt counter.
Reviewed-by: Eric Blake
Signed-off-by: Peter Xu
---
monitor.c | 15 ---
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/monitor.c b/monitor.c
index 92114aaa8