aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/MessageQueue.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/MessageQueue.hpp b/include/MessageQueue.hpp
index df331ac..4f1e036 100644
--- a/include/MessageQueue.hpp
+++ b/include/MessageQueue.hpp
@@ -41,6 +41,11 @@ namespace QuickMedia {
std::unique_lock<std::mutex> lock(mutex);
data_queue.clear();
}
+
+ void restart() {
+ std::unique_lock<std::mutex> lock(mutex);
+ running = true;
+ }
private:
std::deque<T> data_queue;
std::mutex mutex;