Skip to main content

Module threadpool

Module threadpool 

Source
Expand description

Fixed-size work-stealing thread pool.

Provides the same API as the TPool family of functions from the LZ4 reference implementation (threadpool.c), backed by rayon::ThreadPool rather than pthreads / Windows IOCP. Bounded-queue / blocking-submit semantics are preserved via a crossbeam_channel::bounded semaphore channel.

Structs§

TPool
Thread pool handle — equivalent to TPool* in the C API.