Re: [PATCH v3 3/3] thread-pool: remove stopping variable

2022-05-17 Thread Stefan Hajnoczi
On Sat, May 14, 2022 at 08:50:12AM +0200, Paolo Bonzini wrote: > Just setting the max threads to 0 is enough to stop all workers. > > Signed-off-by: Paolo Bonzini > --- > util/thread-pool.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Reviewed-by: Stefan Hajnoczi signature.as

[PATCH v3 3/3] thread-pool: remove stopping variable

2022-05-13 Thread Paolo Bonzini
Just setting the max threads to 0 is enough to stop all workers. Signed-off-by: Paolo Bonzini --- util/thread-pool.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/util/thread-pool.c b/util/thread-pool.c index 6bbf24754a..507c998827 100644 --- a/util/thread-pool.c +++ b