fixes for @terrelln comments
This commit is contained in:
@@ -170,9 +170,9 @@ struct ZSTD_CCtx_s {
|
|||||||
void* workSpace;
|
void* workSpace;
|
||||||
size_t workSpaceSize;
|
size_t workSpaceSize;
|
||||||
size_t blockSize;
|
size_t blockSize;
|
||||||
U64 pledgedSrcSizePlusOne; /* this way, 0 (default) == unknown */
|
unsigned long long pledgedSrcSizePlusOne; /* this way, 0 (default) == unknown */
|
||||||
U64 consumedSrcSize;
|
unsigned long long consumedSrcSize;
|
||||||
U64 producedCSize;
|
unsigned long long producedCSize;
|
||||||
XXH64_state_t xxhState;
|
XXH64_state_t xxhState;
|
||||||
ZSTD_customMem customMem;
|
ZSTD_customMem customMem;
|
||||||
size_t staticSize;
|
size_t staticSize;
|
||||||
|
|||||||
@@ -662,7 +662,7 @@ unsigned ZSTDMT_getNbThreads(const ZSTDMT_CCtx* mtctx)
|
|||||||
/* ZSTDMT_getFrameProgression():
|
/* ZSTDMT_getFrameProgression():
|
||||||
* tells how much data has been consumed (input) and produced (output) for current frame.
|
* tells how much data has been consumed (input) and produced (output) for current frame.
|
||||||
* able to count progression inside worker threads.
|
* able to count progression inside worker threads.
|
||||||
* Note : mutex will be triggered during statistics collection. */
|
* Note : mutex will be acquired during statistics collection. */
|
||||||
ZSTD_frameProgression ZSTDMT_getFrameProgression(ZSTDMT_CCtx* mtctx)
|
ZSTD_frameProgression ZSTDMT_getFrameProgression(ZSTDMT_CCtx* mtctx)
|
||||||
{
|
{
|
||||||
ZSTD_frameProgression fs;
|
ZSTD_frameProgression fs;
|
||||||
|
|||||||
+4
-2
@@ -723,8 +723,10 @@ typedef struct {
|
|||||||
} ZSTD_frameProgression;
|
} ZSTD_frameProgression;
|
||||||
|
|
||||||
/* ZSTD_getFrameProgression():
|
/* ZSTD_getFrameProgression():
|
||||||
* tells how much data has been consumed (input) and produced (output) for current frame.
|
* tells how much data has been ingested (read from input)
|
||||||
* able to count progression inside worker threads (non-blocking mode).
|
* consumed (input actually compressed) and produced (output) for current frame.
|
||||||
|
* Therefore, (ingested - consumed) is amount of input data buffered internally, not yet compressed.
|
||||||
|
* Can report progression inside worker threads (multi-threading and non-blocking mode).
|
||||||
*/
|
*/
|
||||||
ZSTD_frameProgression ZSTD_getFrameProgression(const ZSTD_CCtx* cctx);
|
ZSTD_frameProgression ZSTD_getFrameProgression(const ZSTD_CCtx* cctx);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user