Module worker_pool

Module worker_pool 

Source
Expand description

Worker Pool Management for FFT Parallelization

This module provides a configurable thread pool for parallel FFT operations, similar to SciPy’s worker management functionality.

Structs§

WorkerConfig
Configuration for FFT worker pool
WorkerContext
Context manager for temporarily changing worker count
WorkerPool
FFT Worker Pool Manager Simplified to use core parallel abstractions instead of direct ThreadPool management
WorkerPoolInfo
Information about the worker pool state

Functions§

get_global_pool
Get the global worker pool instance
get_workers
Get the current number of workers
init_global_pool
Initialize the global worker pool with custom configuration
set_workers
Set the number of workers globally
with_workers
Execute a function with a specific number of workers temporarily