summaryrefslogtreecommitdiffstats
path: root/src/SampleQueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/SampleQueue.h')
-rw-r--r--src/SampleQueue.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/SampleQueue.h b/src/SampleQueue.h
index aeeb8d4..f39dbd7 100644
--- a/src/SampleQueue.h
+++ b/src/SampleQueue.h
@@ -275,6 +275,11 @@ public:
return ret;
}
+ void set_max_size(size_t max_size)
+ {
+ m_max_size = max_size;
+ }
+
private:
std::deque<T> m_queue;
mutable std::mutex m_mutex;