Merge pull request #4394 from AZero13/zstd
Remove redundant setting of allJobsCompleted to 1
This commit is contained in:
@@ -1268,8 +1268,7 @@ size_t ZSTDMT_initCStream_internal(
|
|||||||
|
|
||||||
if (mtctx->allJobsCompleted == 0) { /* previous compression not correctly finished */
|
if (mtctx->allJobsCompleted == 0) { /* previous compression not correctly finished */
|
||||||
ZSTDMT_waitForAllJobsCompleted(mtctx);
|
ZSTDMT_waitForAllJobsCompleted(mtctx);
|
||||||
ZSTDMT_releaseAllJobResources(mtctx);
|
ZSTDMT_releaseAllJobResources(mtctx); /* Will set allJobsCompleted to 1 */
|
||||||
mtctx->allJobsCompleted = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mtctx->params = params;
|
mtctx->params = params;
|
||||||
|
|||||||
Reference in New Issue
Block a user