aboutsummaryrefslogtreecommitdiffstats
path: root/src/FIRFilter.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-05-30 17:33:13 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-05-30 17:33:13 +0200
commitd17c32c28ca3a3810fde93889bfbdc5133ab1bf3 (patch)
tree8d148be15cca5913ddba275ab97876cd60f38563 /src/FIRFilter.h
parent43d8e3de1710055e9051ab2696991b9d931283de (diff)
downloaddabmod-d17c32c28ca3a3810fde93889bfbdc5133ab1bf3.tar.gz
dabmod-d17c32c28ca3a3810fde93889bfbdc5133ab1bf3.tar.bz2
dabmod-d17c32c28ca3a3810fde93889bfbdc5133ab1bf3.zip
Use shared_ptr in FIRFilter
Diffstat (limited to 'src/FIRFilter.h')
-rw-r--r--src/FIRFilter.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/FIRFilter.h b/src/FIRFilter.h
index 0ecae3e..05627d4 100644
--- a/src/FIRFilter.h
+++ b/src/FIRFilter.h
@@ -30,6 +30,7 @@
#endif
#include <boost/thread.hpp>
+#include <boost/shared_ptr.hpp>
#include "ThreadsafeQueue.h"
#include "RemoteControl.h"
@@ -52,8 +53,8 @@ struct FIRFilterWorkerData {
/* Thread-safe queues to give data to and get data from
* the worker
*/
- ThreadsafeQueue<Buffer*> input_queue;
- ThreadsafeQueue<Buffer*> output_queue;
+ ThreadsafeQueue<boost::shared_ptr<Buffer> > input_queue;
+ ThreadsafeQueue<boost::shared_ptr<Buffer> > output_queue;
/* Remote-control can change the taps while the filter
* runs. This lock makes sure nothing bad happens when
@@ -127,5 +128,5 @@ protected:
struct FIRFilterWorkerData firwd;
};
-
#endif //FIRFILTER_H
+