From 31edd6a85f52c855d54594dc9f8ceda694d3ebea Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 1 Aug 2015 17:18:24 +0200 Subject: Switch to C++11, remove boost::shared_ptr --- src/FIRFilter.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/FIRFilter.cpp') diff --git a/src/FIRFilter.cpp b/src/FIRFilter.cpp index b1ce618..9ef49c5 100644 --- a/src/FIRFilter.cpp +++ b/src/FIRFilter.cpp @@ -35,8 +35,7 @@ #include #include - -#include +#include #ifdef __AVX__ # include @@ -60,10 +59,10 @@ void FIRFilterWorker::process(struct FIRFilterWorkerData *fwd) // the incoming buffer while(running) { - boost::shared_ptr dataIn; + std::shared_ptr dataIn; fwd->input_queue.wait_and_pop(dataIn); - boost::shared_ptr dataOut = boost::make_shared(); + std::shared_ptr dataOut = make_shared(); dataOut->setLength(dataIn->getLength()); PDEBUG("FIRFilterWorker: dataIn->getLength() %zu\n", dataIn->getLength()); @@ -393,13 +392,13 @@ int FIRFilter::process(Buffer* const dataIn, Buffer* dataOut) // This thread creates the dataIn buffer, and deletes // the outgoing buffer - boost::shared_ptr inbuffer = - boost::make_shared(dataIn->getLength(), dataIn->getData()); + std::shared_ptr inbuffer = + make_shared(dataIn->getLength(), dataIn->getData()); firwd.input_queue.push(inbuffer); if (number_of_runs > 2) { - boost::shared_ptr outbuffer; + std::shared_ptr outbuffer; firwd.output_queue.wait_and_pop(outbuffer); dataOut->setData(outbuffer->getData(), outbuffer->getLength()); -- cgit v1.2.3