aboutsummaryrefslogtreecommitdiffstats
path: root/src/MemlessPoly.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-14 07:43:46 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-14 07:43:46 +0100
commitdb5e90c258f94e65df70830ab1c053debfa15cdb (patch)
tree9ac3a190dec448ae72101dc1a625d7bb3bc0df56 /src/MemlessPoly.cpp
parentd929ecf1e0196161acb5a106761e8fad7040e9d3 (diff)
downloaddabmod-db5e90c258f94e65df70830ab1c053debfa15cdb.tar.gz
dabmod-db5e90c258f94e65df70830ab1c053debfa15cdb.tar.bz2
dabmod-db5e90c258f94e65df70830ab1c053debfa15cdb.zip
Avoid race condition on teardown of pipelined plugins
Diffstat (limited to 'src/MemlessPoly.cpp')
-rw-r--r--src/MemlessPoly.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/MemlessPoly.cpp b/src/MemlessPoly.cpp
index ae097c9..5d1c02d 100644
--- a/src/MemlessPoly.cpp
+++ b/src/MemlessPoly.cpp
@@ -99,6 +99,11 @@ MemlessPoly::MemlessPoly(const std::string& coefs_file, unsigned int num_threads
start_pipeline_thread();
}
+MemlessPoly::~MemlessPoly()
+{
+ stop_pipeline_thread();
+}
+
void MemlessPoly::load_coefficients(const std::string &coefFile)
{
std::ifstream coef_fstream(coefFile.c_str());