OSDN Git Service

thread-pool: remove stopping variable
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 14 May 2022 06:50:12 +0000 (08:50 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 May 2022 19:26:26 +0000 (21:26 +0200)
commit232e9255478f3849957d2f4b083d6e5d4736ab04
treef3de8d77aff683b2c62f2d42fbc4578234649efd
parent900fa208f50623672a6f879374222a7fd4717791
thread-pool: remove stopping variable

Just setting the max threads to 0 is enough to stop all workers.

Message-Id: <20220514065012.1149539-4-pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Nicolas Saenz Julienne <nsaenzju@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/thread-pool.c