From 6ed3918317cb9b20ece88a46daaccc52d974b7bd Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 4 May 2015 11:16:28 +0200 Subject: Replace boost by C++11 std::thread doesn't support interruption like boost::thread, which was used in the ALSA input. Everything else should be equivalent. --- src/AlsaInput.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/AlsaInput.h') diff --git a/src/AlsaInput.h b/src/AlsaInput.h index bd3a800..4f63ab5 100644 --- a/src/AlsaInput.h +++ b/src/AlsaInput.h @@ -21,9 +21,10 @@ #define __ALSA_H_ #include #include +#include +#include #include -#include #include "SampleQueue.h" @@ -107,7 +108,6 @@ class AlsaInputThreaded : public AlsaInput { if (m_running) { m_running = false; - m_thread.interrupt(); m_thread.join(); } } @@ -124,9 +124,9 @@ class AlsaInputThreaded : public AlsaInput void process(); - bool m_fault; - bool m_running; - boost::thread m_thread; + std::atomic m_fault; + std::atomic m_running; + std::thread m_thread; SampleQueue& m_queue; -- cgit v1.2.3