Module multithreading

Source
Expand description

Multithreading helpers.

The main purpose of this module is to allow the number of worker threads used by each puzzle solution to be controlled by a CLI argument.

Functionsยง

get_thread_count
Get the number of worker threads to use.
set_thread_count
Set the number of worker threads to use.
worker_pool
Run a worker function concurrently using a pool of worker threads.