Don't depend on the parallel STL

We were not linking with TBB, and it's a bit of a waste to require it
just for this one unused function.
This commit is contained in:
Robbert van der Helm
2020-11-13 13:41:20 +01:00
parent 08ea0d2891
commit b93f0ddb8b
2 changed files with 10 additions and 4 deletions
+6
View File
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic
Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- Fixed linking error in debug build related to the parallel STL.
## [2.0.1] - 2020-11-08
### Fixed
+4 -4
View File
@@ -16,8 +16,6 @@
#include "plugin-bridge.h"
#include <execution>
// Generated inside of the build directory
#include <src/common/config/config.h>
#include <src/common/config/version.h>
@@ -515,8 +513,10 @@ void PluginBridge::do_process(T** inputs, T** outputs, int sample_frames) {
// going to call this anyways we won't even bother with a separate
// implementation and we'll just add `processReplacing()` results to
// `outputs`.
std::transform(std::execution::unseq,
response_buffers[channel].begin(),
// We could use `std::execution::unseq` here but that would require
// linking to TBB and since this probably won't ever be used anyways
// that's a bit of a waste.
std::transform(response_buffers[channel].begin(),
response_buffers[channel].end(), outputs[channel],
outputs[channel],
[](const T& new_value, T& current_value) -> T {