]> git.ipfire.org Git - thirdparty/zstd.git/commit
zstdmt : flush() only lock to read shared job members
authorYann Collet <cyan@fb.com>
Fri, 26 Jan 2018 20:15:43 +0000 (12:15 -0800)
committerYann Collet <cyan@fb.com>
Fri, 26 Jan 2018 20:15:43 +0000 (12:15 -0800)
commit79b6e28b0a168bb076dbaf653b1a7d71bbd1a201
tree7d598568f98eaf0cabc0151a17dc02ac8fdc995b
parentd2b62b6fa5a752e8312a6c8b9fbedcf53bfa60ff
zstdmt : flush() only lock to read shared job members

Other job members are accessed directly.
This avoids a full job copy, which would access everything,
including a few members that are supposed to be used by worker only,
uselessly requiring additional locks to avoid race conditions.
lib/compress/zstdmt_compress.c