[PD-dev] Multithreading support for FFT functions