]> git.ipfire.org Git - thirdparty/zstd.git/commit
reduced POOL_resize() restriction
authorYann Collet <cyan@fb.com>
Wed, 20 Jun 2018 01:07:18 +0000 (18:07 -0700)
committerYann Collet <cyan@fb.com>
Wed, 20 Jun 2018 01:07:18 +0000 (18:07 -0700)
commit166901dc726691e31de143b9f570693256a1c953
tree8cb92aa04deeb55d819572d1bf789bc2976256b0
parent066fbbfe1c8f849420ff9f10711bd1d11b8ce15b
reduced POOL_resize() restriction

It's not necessary to ensure that no job is ongoing.
The pool is only expanded, existing threads are preserved.
In case of error, the only option is to return NULL and terminate the thread pool anyway.
lib/common/pool.c
lib/compress/zstdmt_compress.c
lib/decompress/zstd_decompress.c