Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
worker_thread_s Struct Reference

Data Fields

worker_state state
 
uint8_t * in
 
size_t in_size
 
lzma_outbufoutbuf
 
lzma_stream_codercoder
 
const lzma_allocatorallocator
 
uint64_t progress_in
 Amount of uncompressed data that has already been compressed.
 
uint64_t progress_out
 Amount of compressed data that is ready.
 
lzma_next_coder block_encoder
 Block encoder.
 
lzma_block block_options
 Compression options for this Block.
 
lzma_filter filters [LZMA_FILTERS_MAX+1]
 
worker_threadnext
 Next structure in the stack of free worker threads.
 
mythread_mutex mutex
 
mythread_cond cond
 
mythread thread_id
 

Field Documentation

◆ allocator

const lzma_allocator * allocator

The allocator is set by the main thread. Since a copy of the pointer is kept here, the application must not change the allocator before calling lzma_end().

◆ block_encoder

lzma_next_coder block_encoder

Block encoder.

◆ block_options

lzma_block block_options

Compression options for this Block.

◆ coder

Pointer to the main structure is needed when putting this thread back to the stack of free threads.

◆ cond

mythread_cond cond

◆ filters

lzma_filter filters

Filter chain for this thread. By copying the filters array to each thread it is possible to change the filter chain between Blocks using lzma_filters_update().

◆ in

uint8_t * in

Input buffer of coder->block_size bytes. The main thread will put new input into this and update in_size accordingly. Once no more input is coming, state will be set to THR_FINISH.

◆ in_size

size_t in_size

Amount of data available in the input buffer. This is modified only by the main thread.

◆ mutex

mythread_mutex mutex

◆ next

worker_thread * next

Next structure in the stack of free worker threads.

◆ outbuf

lzma_outbuf * outbuf

Output buffer for this thread. This is set by the main thread every time a new Block is started with this thread structure.

◆ progress_in

uint64_t progress_in

Amount of uncompressed data that has already been compressed.

◆ progress_out

uint64_t progress_out

Amount of compressed data that is ready.

◆ state

worker_state state

◆ thread_id

mythread thread_id

The ID of this thread is used to join the thread when it's not needed anymore.


The documentation for this struct was generated from the following files: