ZXC 1.0.3
High-performance asymmetric lossless compression library
Loading...
Searching...
No Matches
Threading Limits

Bounds on thread-count parameters accepted by the streaming APIs. More...

Macros

#define ZXC_MAX_THREADS   512
 Thread cap, a guard against memory exhaustion: each worker of the FILE* pipeline holds up to four jobs of two blocks.

Detailed Description

Bounds on thread-count parameters accepted by the streaming APIs.

Macro Definition Documentation

◆ ZXC_MAX_THREADS

#define ZXC_MAX_THREADS   512

Thread cap, a guard against memory exhaustion: each worker of the FILE* pipeline holds up to four jobs of two blocks.

The THREADS setters refuse more; zxc_seekable_decompress_range_mt() clamps to it.

Definition at line 107 of file zxc_constants.h.

Referenced by zxc_cparam_bounds(), zxc_dparam_bounds(), zxc_seekable_decompress_range_mt(), and zxc_stream_engine_start().