Expand description
Utilities for splitting work to be processed in parallel.
Constants§
- MAX_
THREADS - The maximum amount of threads which can be used by
parallelize
.create_thread_pool
also caps the amount of threads it creates at this.
Functions§
- create_
thread_ pool - Creates a thread pool, reserving space for buffering
task_queue_length
tasks per thread. - parallelize
- Runs the function on multiple threads, splitting the data into one part for each thread.