]> git.ipfire.org Git - thirdparty/zstd.git/commit
ZSTDMT can now work in non-blocking mode with 1 thread
authorYann Collet <cyan@fb.com>
Tue, 16 Jan 2018 23:28:43 +0000 (15:28 -0800)
committerYann Collet <cyan@fb.com>
Tue, 16 Jan 2018 23:28:43 +0000 (15:28 -0800)
commit2e23333094e6df6f84b7e21b2dcf64deff88ec30
tree15698ad55196833b509dcbefff3723d10f0473a7
parent8e83c5c9104f7b98ac832e8d30e585c784c0131a
ZSTDMT can now work in non-blocking mode with 1 thread

it still fallbacks to single-thread blocking invocation
when input is small (<1job)
or when invoking ZSTDMT_compress(), which is blocking.

Also : fixed a bug in new block-granular compression routine.
lib/compress/zstd_compress.c
lib/compress/zstdmt_compress.c
lib/compress/zstdmt_compress.h
lib/decompress/zstd_decompress.c
tests/zstreamtest.c