Skip to content

Fix possible thread-unsafe operation with complex addition

We put each PSD window into a synchronized list, then add up each one's values at the end outside of the parallelization. Because Complex operations like addition return a new object rather than modify the one in-place, these operations may not be thread-safe. Unfortunately we need to use something like in-place addition in order to store the cumulative sum of each PSD window's data per frequency, hence this change.

Merge request reports